Changeset 5474 for freepbx/branches/2.4
- Timestamp:
- 12/11/07 19:03:52 (5 years ago)
- Files:
-
- freepbx/branches/2.4/amp_conf/htdocs/admin/functions.inc.php (modified) (1 diff)
- freepbx/branches/2.4/install_amp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.4/amp_conf/htdocs/admin/functions.inc.php
r5448 r5474 1038 1038 1039 1039 1040 /* verison_compare that works with freePBX version numbers 1041 */ 1042 function version_compare_freepbx($version1, $version2, $op = null) { 1043 $version1 = str_replace("rc","RC", strtolower($version1)); 1044 $version2 = str_replace("rc","RC", strtolower($version2)); 1045 if (!is_null($op)) { 1046 return version_compare($version1, $version2, $op); 1047 } else { 1048 return version_compare($version1, $version2); 1049 } 1040 if (!function_exists('version_compare_freepbx')) { 1041 /* verison_compare that works with freePBX version numbers 1042 */ 1043 function version_compare_freepbx($version1, $version2, $op = null) { 1044 $version1 = str_replace("rc","RC", strtolower($version1)); 1045 $version2 = str_replace("rc","RC", strtolower($version2)); 1046 if (!is_null($op)) { 1047 return version_compare($version1, $version2, $op); 1048 } else { 1049 return version_compare($version1, $version2); 1050 } 1051 } 1050 1052 } 1051 1053 freepbx/branches/2.4/install_amp
r5473 r5474 88 88 } 89 89 90 function version_compare_freepbx($version1, $version2, $cond=null) { 91 $version1 = str_replace("rc","RC", strtolower($version1)); 92 $version2 = str_replace("rc","RC", strtolower($version2)); 93 return version_compare($version1, $version2, $cond); 90 if (!function_exists('version_compare_freepbx')) { 91 /* verison_compare that works with freePBX version numbers 92 */ 93 function version_compare_freepbx($version1, $version2, $op = null) { 94 $version1 = str_replace("rc","RC", strtolower($version1)); 95 $version2 = str_replace("rc","RC", strtolower($version2)); 96 if (!is_null($op)) { 97 return version_compare($version1, $version2, $op); 98 } else { 99 return version_compare($version1, $version2); 100 } 101 } 94 102 } 95 103
