diff options
author | Andrew Dolgov <[email protected]> | 2020-09-22 14:54:15 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-09-22 14:54:15 +0300 |
commit | 6811d0bde220d7632b9d6a7fa4f4931cc96324c8 (patch) | |
tree | 84e66e1427ea53c0a2a0473cabade723d1e6ce47 /classes/pluginhost.php | |
parent | b5710baf3439343bbc65c2fc1586aefd0b94d99c (diff) |
use self:: in some places to invoke static methods from the same class
Diffstat (limited to 'classes/pluginhost.php')
-rwxr-xr-x | classes/pluginhost.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/pluginhost.php b/classes/pluginhost.php index acccea5db..3ff658918 100755 --- a/classes/pluginhost.php +++ b/classes/pluginhost.php @@ -235,8 +235,8 @@ class PluginHost { $plugin_api = $plugin->api_version(); - if ($plugin_api < PluginHost::API_VERSION) { - user_error("Plugin $class is not compatible with current API version (need: " . PluginHost::API_VERSION . ", got: $plugin_api)", E_USER_WARNING); + if ($plugin_api < self::API_VERSION) { + user_error("Plugin $class is not compatible with current API version (need: " . self::API_VERSION . ", got: $plugin_api)", E_USER_WARNING); continue; } |