fix updated for search correct filename

This commit is contained in:
r4sas
2018-08-29 01:05:49 +03:00
parent 7e1c24a1ef
commit 9b03a2ce72

View File

@@ -40,7 +40,7 @@ function update_rs($mysqlcon,$lang,$dbname,$logpath,$timezone,$newversion,$phpco
enter_logfile($logpath,$timezone,4," Database-tables successfully backuped.",$norotate);
}
if(!is_file(substr(__DIR__,0,-4).'update/'.$newversion.'.zip')) {
if(!is_file(substr(__DIR__,0,-4).'update/ranksystem_'.$newversion.'.zip')) {
enter_logfile($logpath,$timezone,4," Downloading new update...",$norotate);
$newUpdate = file_get_contents('https://ts-n.net/downloads/ranksystem_'.$newversion.'.zip');
if(!is_dir(substr(__DIR__,0,-4).'update/')) {
@@ -132,4 +132,4 @@ function update_rs($mysqlcon,$lang,$dbname,$logpath,$timezone,$newversion,$phpco
enter_logfile($logpath,$timezone,1," Files updated with at least one error. Please check the log!",$norotate);
// how to handle this.. Perhaps try again automatically in 30 minutes
}
}
}