mirror of
https://github.com/typecho/typecho.git
synced 2025-01-18 04:58:20 +01:00
Merge pull request #735 from mrasong/master
bug fixed: Typecho_Plugin::exists()
This commit is contained in:
commit
6530443e41
@ -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']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user