diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-03-08 19:59:00 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2017-03-08 20:00:21 +0100 |
commit | e6cd773f5a8bd757c9362524cfeb3f7cb7fa81c9 (patch) | |
tree | 15a52157ff65977577edb819c8b2ab1745c22a6e /application | |
parent | 7c26f6626a47c7e3e902f6b00c7c9e640a18f22c (diff) | |
download | Shaarli-e6cd773f5a8bd757c9362524cfeb3f7cb7fa81c9.tar.gz Shaarli-e6cd773f5a8bd757c9362524cfeb3f7cb7fa81c9.tar.zst Shaarli-e6cd773f5a8bd757c9362524cfeb3f7cb7fa81c9.zip |
Fix blocking namespace issue
Diffstat (limited to 'application')
-rw-r--r-- | application/config/ConfigPlugin.php | 17 | ||||
-rw-r--r-- | application/config/exception/PluginConfigOrderException.php | 17 |
2 files changed, 19 insertions, 15 deletions
diff --git a/application/config/ConfigPlugin.php b/application/config/ConfigPlugin.php index 61a594d3..b3d9752b 100644 --- a/application/config/ConfigPlugin.php +++ b/application/config/ConfigPlugin.php | |||
@@ -1,5 +1,6 @@ | |||
1 | <?php | 1 | <?php |
2 | namespace Shaarli\Config; | 2 | |
3 | use Shaarli\Config\Exception\PluginConfigOrderException; | ||
3 | 4 | ||
4 | /** | 5 | /** |
5 | * Plugin configuration helper functions. | 6 | * Plugin configuration helper functions. |
@@ -110,17 +111,3 @@ function load_plugin_parameter_values($plugins, $conf) | |||
110 | 111 | ||
111 | return $out; | 112 | return $out; |
112 | } | 113 | } |
113 | |||
114 | /** | ||
115 | * Exception used if an error occur while saving plugin configuration. | ||
116 | */ | ||
117 | class PluginConfigOrderException extends \Exception | ||
118 | { | ||
119 | /** | ||
120 | * Construct exception. | ||
121 | */ | ||
122 | public function __construct() | ||
123 | { | ||
124 | $this->message = 'An error occurred while trying to save plugins loading order.'; | ||
125 | } | ||
126 | } | ||
diff --git a/application/config/exception/PluginConfigOrderException.php b/application/config/exception/PluginConfigOrderException.php new file mode 100644 index 00000000..f9d68750 --- /dev/null +++ b/application/config/exception/PluginConfigOrderException.php | |||
@@ -0,0 +1,17 @@ | |||
1 | <?php | ||
2 | |||
3 | namespace Shaarli\Config\Exception; | ||
4 | |||
5 | /** | ||
6 | * Exception used if an error occur while saving plugin configuration. | ||
7 | */ | ||
8 | class PluginConfigOrderException extends \Exception | ||
9 | { | ||
10 | /** | ||
11 | * Construct exception. | ||
12 | */ | ||
13 | public function __construct() | ||
14 | { | ||
15 | $this->message = 'An error occurred while trying to save plugins loading order.'; | ||
16 | } | ||
17 | } | ||