Add db backup/restore
This commit is contained in:
1 parent
c2fd2401a5
commit
06798d8a3b
3 files changed
+54
-5
No files matched your search
+3
-3
@@ -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