git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12215
7612ce4b-ef26-0410-bec9-
ea0150e637f0
if ($key != 0 || $value != '') {
$str .= " * $key = $value";
// add plugin version
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";
$str.= ' ' . call_user_func($value . '_version');
}
$str.="\n";