|
@@ 72-75 (lines=4) @@
|
| 69 |
|
}
|
| 70 |
|
$success = true;
|
| 71 |
|
|
| 72 |
|
if (version_compare($currentVer, $requiredVer, '<')) {
|
| 73 |
|
$success = false;
|
| 74 |
|
$module->setErrors(sprintf(constant('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS'), $requiredVer, $currentVer));
|
| 75 |
|
}
|
| 76 |
|
|
| 77 |
|
return $success;
|
| 78 |
|
}
|
|
@@ 104-107 (lines=4) @@
|
| 101 |
|
$reqVer = &$module->getInfo('min_php');
|
| 102 |
|
|
| 103 |
|
if (false !== $reqVer && '' !== $reqVer) {
|
| 104 |
|
if (version_compare($verNum, $reqVer, '<')) {
|
| 105 |
|
$module->setErrors(sprintf(constant('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP'), $reqVer, $verNum));
|
| 106 |
|
$success = false;
|
| 107 |
|
}
|
| 108 |
|
}
|
| 109 |
|
|
| 110 |
|
return $success;
|