remove serv name filter in addTimestampToFilePath
This commit is contained in:
@@ -94,15 +94,13 @@ abstract class Main extends PhpObject
|
||||
$this->setMasks();
|
||||
}
|
||||
|
||||
public function addTimestampToFilePath($sFile)
|
||||
public static function addTimestampToFilePath($sFile)
|
||||
{
|
||||
//Remove timestamp
|
||||
$sFilePath = preg_replace('/(.*)\?[\d]{14}$/', '$1', $sFile);
|
||||
|
||||
//Remove base URL
|
||||
$sLocalPath = str_replace($this->asContext['serv_name'], '', $sFilePath);
|
||||
|
||||
return file_exists($sLocalPath)?$sFilePath.'?'.date("YmdHis", filemtime($sLocalPath)):$sFile;
|
||||
//Add timestamp
|
||||
return file_exists($sFilePath)?$sFilePath.'?'.date("YmdHis", filemtime($sFilePath)):$sFile;
|
||||
}
|
||||
|
||||
public function addUncaughtError($sError)
|
||||
|
||||
Reference in New Issue
Block a user