@@ -23,19 +23,19 @@ class CakePlugin {
23
23
* parameters (plugin name, plugin configuration)
24
24
*
25
25
* It is also possible to load multiple plugins at once. Examples:
26
- *
26
+ *
27
27
* `CakePlugin::load(array('DebugKit', 'ApiGenerator'))` will load the DebugKit and ApiGenerator plugins
28
28
* `CakePlugin::load(array('DebugKit', 'ApiGenerator'), array('bootstrap' => true))` will load bootstrap file for both plugins
29
- *
29
+ *
30
30
* {{{
31
31
* CakePlugin::load(array(
32
32
* 'DebugKit' => array('routes' => true),
33
33
* 'ApiGenerator'
34
34
* ), array('bootstrap' => true))
35
35
* }}}
36
- *
36
+ *
37
37
* Will only load the bootstrap for ApiGenerator and only the routes for DebugKit
38
- *
38
+ *
39
39
* @param mixed $plugin name of the plugin to be loaded in CamelCase format or array or plugins to load
40
40
* @param array $config configuration options for the plugin
41
41
* @throws MissingPluginException if the folder for the plugin to be loaded is not found
@@ -94,7 +94,7 @@ public static function load($plugin, $config = array()) {
94
94
* The above example will load the bootstrap file for all plugins, but for DebugKit it will only load the routes file
95
95
* and will not look for any bootstrap script.
96
96
*
97
- * @param array $options
97
+ * @param array $options
98
98
* @return void
99
99
*/
100
100
public function loadAll ($ options = array ()) {
@@ -173,7 +173,9 @@ public static function loaded($plugin = null) {
173
173
if ($ plugin ) {
174
174
return isset (self ::$ _plugins [$ plugin ]);
175
175
}
176
- return array_keys (self ::$ _plugins );
176
+ $ return = array_keys (self ::$ _plugins );
177
+ sort ($ return );
178
+ return $ return ;
177
179
}
178
180
179
181
/**
@@ -189,4 +191,4 @@ public static function unload($plugin = null) {
189
191
unset(self ::$ _plugins [$ plugin ]);
190
192
}
191
193
}
192
- }
194
+ }
0 commit comments