diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-04-08 20:27:48 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-04-08 20:27:48 +0200 |
commit | d22d119e3819b9c6722a751ba8fe64de3a9aeb5a (patch) | |
tree | f40897e18dadc57ecb211b5981b00802c934b008 /program/lib/Roundcube | |
parent | 7a6dd9ad8426b5c5d276e031d72aad58efe1341e (diff) |
Fix compatibility with PHP 5.2
Diffstat (limited to 'program/lib/Roundcube')
-rw-r--r-- | program/lib/Roundcube/rcube_plugin_api.php | 4 |
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) { |