From: pdontthink Date: Fri, 2 Feb 2007 23:16:38 +0000 (+0000) Subject: Use _info() function if at all possible instead of _version() X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=7af343f176b34839e17d03e5f2ea9dc45b56f6d2 Use _info() function if at all possible instead of _version() git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12215 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/bug_report/system_specs.php b/plugins/bug_report/system_specs.php index a98e2833..1dd36d93 100644 --- a/plugins/bug_report/system_specs.php +++ b/plugins/bug_report/system_specs.php @@ -59,7 +59,15 @@ function br_show_plugins() { if ($key != 0 || $value != '') { $str .= " * $key = $value"; // add plugin version - if (function_exists($value . '_version')) { + $version_found = FALSE; + if (function_exists($value . '_info')) { + $info = call_user_func($value . '_info'); + if (!empty($info['version'])) { + $str .= ' ' . $info['version']; + $version_found = TRUE; + } + } + if (!$version_found && function_exists($value . '_version')) { $str.= ' ' . call_user_func($value . '_version'); } $str.="\n";