summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-04-08 20:27:48 +0200
committerAleksander Machniak <alec@alec.pl>2014-04-08 20:27:48 +0200
commitd22d119e3819b9c6722a751ba8fe64de3a9aeb5a (patch)
treef40897e18dadc57ecb211b5981b00802c934b008 /program/lib
parent7a6dd9ad8426b5c5d276e031d72aad58efe1341e (diff)
Fix compatibility with PHP 5.2
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/Roundcube/rcube_plugin_api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_plugin_api.php b/program/lib/Roundcube/rcube_plugin_api.php
index feeeb192e..617e921bd 100644
--- a/program/lib/Roundcube/rcube_plugin_api.php
+++ b/program/lib/Roundcube/rcube_plugin_api.php
@@ -233,7 +233,7 @@ class rcube_plugin_api
/**
* Get information about a specific plugin.
- * This is either provided my a plugin's info() method or extracted from a package.xml or a composer.json file
+ * This is either provided by a plugin's info() method or extracted from a package.xml or a composer.json file
*
* @param string Plugin name
* @return array Meta information about a plugin or False if plugin was not found
@@ -279,7 +279,7 @@ class rcube_plugin_api
include($fn);
if (class_exists($plugin_name))
- $info = $plugin_name::info();
+ $info = call_user_func(array($plugin_name, 'info'));
// fall back to composer.json file
if (!$info) {