summaryrefslogtreecommitdiff
path: root/classes/pluginhost.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-22 14:54:15 +0300
committerAndrew Dolgov <[email protected]>2020-09-22 14:54:15 +0300
commit6811d0bde220d7632b9d6a7fa4f4931cc96324c8 (patch)
tree84e66e1427ea53c0a2a0473cabade723d1e6ce47 /classes/pluginhost.php
parentb5710baf3439343bbc65c2fc1586aefd0b94d99c (diff)
use self:: in some places to invoke static methods from the same class
Diffstat (limited to 'classes/pluginhost.php')
-rwxr-xr-xclasses/pluginhost.php4
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;
}