Skip to content

Commit

Permalink
Dev: force int type for destination build before updating version.php
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Oct 16, 2015
1 parent 86eaf26 commit ceb878d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/UpdateForm.php
Expand Up @@ -353,7 +353,7 @@ public function removeTmpFile($sTmpFile = 'update.zip')
*/
public function updateVersion($destinationBuild)
{
// Now we have to update version.php
$destinationBuild = (int) $destinationBuild;
@ini_set('auto_detect_line_endings', true);
$versionlines=file($this->rootdir.DIRECTORY_SEPARATOR.'application'.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'version.php');
$handle = fopen($this->rootdir.DIRECTORY_SEPARATOR.'application'.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'version.php', "w");
Expand Down

0 comments on commit ceb878d

Please sign in to comment.