File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ public static function load($plugin, $config = array()) {
124
124
125
125
/**
126
126
* Will load all the plugins located in the configured plugins folders
127
+ *
127
128
* If passed an options array, it will be used as a common default for all plugins to be loaded
128
129
* It is possible to set specific defaults for each plugins in the options array. Examples:
129
130
*
@@ -155,12 +156,12 @@ public static function load($plugin, $config = array()) {
155
156
*/
156
157
public static function loadAll ($ options = array ()) {
157
158
$ plugins = App::objects ('plugins ' );
158
- foreach ($ plugins as $ p ) {
159
- $ opts = isset ($ options [$ p ]) ? (array )$ options [$ p ] : array ();
159
+ foreach ($ plugins as $ plugin ) {
160
+ $ pluginOptions = isset ($ options [$ plugin ]) ? (array )$ options [$ plugin ] : array ();
160
161
if (isset ($ options [0 ])) {
161
- $ opts += $ options [0 ];
162
+ $ pluginOptions += $ options [0 ];
162
163
}
163
- static ::load ($ p , $ opts );
164
+ static ::load ($ plugin , $ pluginOptions );
164
165
}
165
166
}
166
167
You can’t perform that action at this time.
0 commit comments