소스 검색

System update (painless update from previous version)

markseu 8 년 전
부모
커밋
cca07143f8
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      system/plugins/core.php

+ 5 - 0
system/plugins/core.php

@@ -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)
 		{