System update (painless update from previous version)

This commit is contained in:
markseu 2017-06-18 13:08:11 +02:00
parent fb2f5e4c90
commit cca07143f8

View file

@ -1633,6 +1633,11 @@ class YellowPlugins
// Load plugins
function load($path = "")
{
if(count($this->yellow->config->config)==0) //TODO: remove later, backwards compability for old version
{
$this->yellow->load();
return;
}
$path = empty($path) ? $this->yellow->config->get("pluginDir") : $path;
foreach($this->yellow->toolbox->getDirectoryEntries($path, "/^.*\.php$/", true, false) as $entry)
{