Add db backup/restore
This commit is contained in:
@@ -93,13 +93,13 @@ abstract class Main extends PhpObject
|
||||
$this->setMasks();
|
||||
}
|
||||
|
||||
public static function addTimestampToFilePath($sFile)
|
||||
public static function addTimestampToFilePath($sFilePath)
|
||||
{
|
||||
//Remove timestamp
|
||||
$sFilePath = preg_replace('/(.*)\?[\d]{14}$/', '$1', $sFile);
|
||||
$sCleanedFilePath = preg_replace('/(.*)\?[\d]{14}$/', '$1', $sFilePath);
|
||||
|
||||
//Add timestamp
|
||||
return file_exists($sFilePath)?$sFilePath.'?'.date("YmdHis", filemtime($sFilePath)):$sFile;
|
||||
return file_exists($sCleanedFilePath)?$sCleanedFilePath.'?'.date("YmdHis", filemtime($sCleanedFilePath)):$sFilePath;
|
||||
}
|
||||
|
||||
public function addUncaughtError($sError)
|
||||
|
||||
Reference in New Issue
Block a user