diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-10-28 06:50:42 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-10-28 06:51:11 +0300 |
commit | d8e12b117ffc28735412b956fc1c37ca3168a301 (patch) | |
tree | 8f7cd650bfbad91744caf28d0857d7d981de43b8 /core | |
parent | 1034790e16c281e45faacb12754eee871bdfa1b2 (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')
-rw-r--r-- | core/FrontController.php | 11 | ||||
-rw-r--r-- | core/PluginDeactivatedException.php | 20 |
2 files changed, 20 insertions, 11 deletions
diff --git a/core/FrontController.php b/core/FrontController.php index 34da03fd9f..cf1981c48a 100644 --- a/core/FrontController.php +++ b/core/FrontController.php @@ -613,14 +613,3 @@ class FrontController extends Singleton return $result; } } - -/** - * 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."); - } -} 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."); + } +} |