|
@@ 305-309 (lines=5) @@
|
| 302 |
|
$maxVersion = $appInfo['requiremax']; |
| 303 |
|
} |
| 304 |
|
|
| 305 |
|
if (!is_null($minVersion)) { |
| 306 |
|
if ($this->compareSmaller($this->platform->getOcVersion(), $minVersion)) { |
| 307 |
|
$missing[] = (string)$this->l->t('Server version %s or higher is required.', $this->toVisibleVersion($minVersion)); |
| 308 |
|
} |
| 309 |
|
} |
| 310 |
|
if (!is_null($maxVersion)) { |
| 311 |
|
if ($this->compareBigger($this->platform->getOcVersion(), $maxVersion)) { |
| 312 |
|
$missing[] = (string)$this->l->t('Server version %s or lower is required.', $this->toVisibleVersion($maxVersion)); |
|
@@ 310-314 (lines=5) @@
|
| 307 |
|
$missing[] = (string)$this->l->t('Server version %s or higher is required.', $this->toVisibleVersion($minVersion)); |
| 308 |
|
} |
| 309 |
|
} |
| 310 |
|
if (!is_null($maxVersion)) { |
| 311 |
|
if ($this->compareBigger($this->platform->getOcVersion(), $maxVersion)) { |
| 312 |
|
$missing[] = (string)$this->l->t('Server version %s or lower is required.', $this->toVisibleVersion($maxVersion)); |
| 313 |
|
} |
| 314 |
|
} |
| 315 |
|
return $missing; |
| 316 |
|
} |
| 317 |
|
|