diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-11-04 05:31:50 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-11-04 05:31:50 +0300 |
commit | ffa5c1e86e578ff166d5c55a5edb1ca14f1e3d28 (patch) | |
tree | 775467ba3e6c16d625f63e574738f5d3a99bc72f /core/Filechecks.php | |
parent | bde45453cda42c88b19d660ca406c61cb1130ce0 (diff) |
refs #6564 refactored out HtmlMessageException and introduced some other exceptions instead
Diffstat (limited to 'core/Filechecks.php')
-rw-r--r-- | core/Filechecks.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/Filechecks.php b/core/Filechecks.php index eab93fd260..0c37680fc4 100644 --- a/core/Filechecks.php +++ b/core/Filechecks.php @@ -8,7 +8,7 @@ */ namespace Piwik; -use Piwik\Exceptions\HtmlMessageException; +use Piwik\Exception\MissingFilePermissionException; class Filechecks { @@ -96,7 +96,7 @@ class Filechecks } } - $directoryMessage = "<p><b>Piwik couldn't write to some directories $optionalUserInfo</b>.</p>"; + $directoryMessage = "<p><b>Piwik couldn't write to some directories $optionalUserInfo</b>.</p>"; $directoryMessage .= "<p>Try to Execute the following commands on your server, to allow Write access on these directories" . ":</p>" . "<blockquote>$directoryList</blockquote>" @@ -104,7 +104,10 @@ 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>"; - throw new HtmlMessageException($directoryMessage); + $ex = new MissingFilePermissionException($directoryMessage); + $ex->setIsHtmlMessage(); + + throw $ex; } /** |