Merge pull request #735 from mrasong/master

bug fixed: Typecho_Plugin::exists()
This commit is contained in:
joyqi 2018-03-25 00:32:37 +08:00 committed by GitHub
commit 6530443e41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -407,8 +407,8 @@ class Typecho_Plugin
* @param string $pluginName 插件名称
* @return mixed
*/
public function exists($pluginName) {
return array_search($pluginName, self::$_plugins['activated']);
public static function exists($pluginName) {
return array_key_exists($pluginName, self::$_plugins['activated']);
}
/**