Fix sorting of Pico::$nativePlugins
Thanks to PT on our Freenode IRC channel #picocms for reporting this!
This commit is contained in:
parent
05c2c968c3
commit
190889b77b
1 changed files with 6 additions and 0 deletions
|
@ -770,12 +770,14 @@ class Pico
|
|||
$plugins = $this->plugins;
|
||||
$nativePlugins = $this->nativePlugins;
|
||||
$sortedPlugins = array();
|
||||
$sortedNativePlugins = array();
|
||||
$visitedPlugins = array();
|
||||
|
||||
$visitPlugin = function ($plugin) use (
|
||||
$plugins,
|
||||
$nativePlugins,
|
||||
&$sortedPlugins,
|
||||
&$sortedNativePlugins,
|
||||
&$visitedPlugins,
|
||||
&$visitPlugin
|
||||
) {
|
||||
|
@ -802,6 +804,9 @@ class Pico
|
|||
}
|
||||
|
||||
$sortedPlugins[$pluginName] = $plugin;
|
||||
if (isset($nativePlugins[$pluginName])) {
|
||||
$sortedNativePlugins[$pluginName] = $plugin;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -814,6 +819,7 @@ class Pico
|
|||
}
|
||||
|
||||
$this->plugins = $sortedPlugins;
|
||||
$this->nativePlugins = $sortedNativePlugins;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue