From 4a6c3b3e3109e2d57076ad62a4bf9f8118ca2bd7 Mon Sep 17 00:00:00 2001 From: diosmosis Date: Sun, 26 Oct 2014 22:30:14 -0700 Subject: Replace all uses of Piwik_ExitWithMessage (except one) with throwing exceptions & include HtmlMessageException class for exceptions w/ HTML content in their message. --- core/Filechecks.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/Filechecks.php') 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 . "

After applying the modifications, you can refresh the page.

" . "

If you need more help, try Piwik.org.

"; - Piwik_ExitWithMessage($directoryMessage, false, true); + throw new HtmlMessageException($directoryMessage); } /** -- cgit v1.2.3