GX-Bug #59942 » requirementtesting.patch
src/gambio_updater/classes/RequirementsTesting.inc.php (revision ) | ||
---|---|---|
28 | 28 |
/** |
29 | 29 |
* Initialize the requirement testing instance. |
30 | 30 |
*/ |
31 |
function RequirementsTesting()
|
|
31 |
function __construct()
|
|
32 | 32 |
{ |
33 |
$this->server = (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? 'windows' : ''; |
|
33 |
$this->server = (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' || PHP_OS === 'SunOS') ? 'windows' : '';
|
|
34 | 34 |
} |
35 | 35 |
|
36 | 36 |
|
... | ... | |
214 | 214 |
} |
215 | 215 |
} |
216 | 216 |
|
217 |
if(!$newest) |
|
218 |
{ |
|
219 |
$this->_filterMovedFilesFromFileArray($filesArray, $currentVersion) |
|
220 |
->_filterToDeleteFilesFromFileArray($filesArray, $currentVersion); |
|
217 |
$this->_filterMovedFilesFromFileArray($filesArray, $currentVersion) |
|
218 |
->_filterToDeleteFilesFromFileArray($filesArray, $currentVersion); |
|
221 |
} |
|
222 | 219 |
|
223 | 220 |
return $filesArray; |
224 | 221 |
} |