Use compatibility_info() function if at all possible instead of compatibility_version()
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 2 Feb 2007 23:24:09 +0000 (23:24 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 2 Feb 2007 23:24:09 +0000 (23:24 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12216 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/bug_report/system_specs.php

index 1dd36d9377618e975058449219f71af425d90aa5..8a46a45e084c5eafb305b87ff3972b0661894d2d 100644 (file)
@@ -78,8 +78,16 @@ function br_show_plugins() {
             && ! in_array('compatibility',$plugins)) {
             $str.= '    * compatibility';
             include_once(SM_PATH . 'plugins/compatibility/setup.php');
-            if (function_exists('compatibility_version')) {
-                $str.= ' ' . call_user_func('compatibility_version');
+            $version_found = FALSE;
+            if (function_exists('compatibility_info')) {
+                $info = compatibility_info();
+                if (!empty($info['version'])) {
+                    $str .= ' ' . $info['version'];
+                    $version_found = TRUE;
+                }
+            }
+            if (!$version_found && function_exists('compatibility_version')) {
+                $str.= ' ' . compatibility_version();
             }
             $str.="\n";
         }