Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2014-10-27 08:30:14 +0300
committerdiosmosis <benaka@piwik.pro>2014-10-28 06:46:32 +0300
commit4a6c3b3e3109e2d57076ad62a4bf9f8118ca2bd7 (patch)
treec9b5894be69dbd2b9b1d8265caf7dc6447580f98 /core/Filechecks.php
parentafb1c374f969731bbc7f4e3f0157cc25cce8672e (diff)
Replace all uses of Piwik_ExitWithMessage (except one) with throwing exceptions & include HtmlMessageException class for exceptions w/ HTML content in their message.
Diffstat (limited to 'core/Filechecks.php')
-rw-r--r--core/Filechecks.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Filechecks.php b/core/Filechecks.php
index 3dc6d53195..eab93fd260 100644
--- a/core/Filechecks.php
+++ b/core/Filechecks.php
@@ -8,6 +8,8 @@
*/
namespace Piwik;
+use Piwik\Exceptions\HtmlMessageException;
+
class Filechecks
{
/**
@@ -102,7 +104,7 @@ class Filechecks
. "<p>After applying the modifications, you can <a href='index.php'>refresh the page</a>.</p>"
. "<p>If you need more help, try <a href='?module=Proxy&action=redirect&url=http://piwik.org'>Piwik.org</a>.</p>";
- Piwik_ExitWithMessage($directoryMessage, false, true);
+ throw new HtmlMessageException($directoryMessage);
}
/**