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:
authorThomas Steur <tsteur@users.noreply.github.com>2014-11-14 01:22:24 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2014-11-14 01:22:24 +0300
commitca36bb8ba014d08bc400b0a70a9176153d814d4e (patch)
treed15626a669019792db6b11a560a6b988ea4e52e2 /plugins/CorePluginsAdmin
parent98a2ab4bd7b3cc37f5bbe18df28d50099a573c7e (diff)
parentffa5c1e86e578ff166d5c55a5edb1ca14f1e3d28 (diff)
Merge pull request #6587 from piwik/removeHtmlMessageException
Refactor out HtmlMessageException
Diffstat (limited to 'plugins/CorePluginsAdmin')
-rw-r--r--plugins/CorePluginsAdmin/Controller.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/CorePluginsAdmin/Controller.php b/plugins/CorePluginsAdmin/Controller.php
index b87fc91579..02020c710d 100644
--- a/plugins/CorePluginsAdmin/Controller.php
+++ b/plugins/CorePluginsAdmin/Controller.php
@@ -11,7 +11,7 @@ namespace Piwik\Plugins\CorePluginsAdmin;
use Exception;
use Piwik\API\Request;
use Piwik\Common;
-use Piwik\Exceptions\HtmlMessageException;
+use Piwik\Exception\MissingFilePermissionException;
use Piwik\Filechecks;
use Piwik\Filesystem;
use Piwik\Nonce;
@@ -444,10 +444,13 @@ class Controller extends Plugin\ControllerAdmin
$messageIntro = Piwik::translate("Warning: \"%s\" could not be uninstalled. Piwik did not have enough permission to delete the files in $path. ",
$pluginName);
- $exitMessage = $messageIntro . "<br/><br/>" . $messagePermissions;
+ $exitMessage = $messageIntro . "<br/><br/>" . $messagePermissions;
$exitMessage .= "<br> Or manually delete this directory (using FTP or SSH access)";
- throw new HtmlMessageException($exitMessage);
+ $ex = new MissingFilePermissionException($exitMessage);
+ $ex->setIsHtmlMessage();
+
+ throw $ex;
}
$this->redirectAfterModification($redirectAfter);