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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2014-10-28 06:50:42 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2014-10-28 06:51:11 +0300
commitd8e12b117ffc28735412b956fc1c37ca3168a301 (patch)
tree8f7cd650bfbad91744caf28d0857d7d981de43b8 /core/PluginDeactivatedException.php
parent1034790e16c281e45faacb12754eee871bdfa1b2 (diff)
Moved PluginDeactivatedException out of the FrontController.php file
Because 1) it should be (one class per file) and 2) some plugin tests fails now that the FrontController is now always called in tests (at least I think)
Diffstat (limited to 'core/PluginDeactivatedException.php')
-rw-r--r--core/PluginDeactivatedException.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/core/PluginDeactivatedException.php b/core/PluginDeactivatedException.php
new file mode 100644
index 0000000000..fe42667674
--- /dev/null
+++ b/core/PluginDeactivatedException.php
@@ -0,0 +1,20 @@
+<?php
+/**
+ * Piwik - free/libre analytics platform
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
+ */
+
+namespace Piwik;
+
+/**
+ * Exception thrown when the requested plugin is not activated in the config file
+ */
+class PluginDeactivatedException extends \Exception
+{
+ public function __construct($module)
+ {
+ parent::__construct("The plugin $module is not enabled. You can activate the plugin on Settings > Plugins page in Piwik.");
+ }
+}