1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Database > Export : Rename file if theme/install/install.xml already exists.

This commit is contained in:
Cameron
2017-01-26 11:10:44 -08:00
parent 5c3ce83168
commit aaf9478278

View File

@@ -1005,7 +1005,14 @@ class xmlClass
$path = e107::getParser()->replaceConstants($this->filePathDestination);
if($path)
{
file_put_contents($path."install.xml",$text,FILE_TEXT);
$fileName= "install.xml";
if(file_exists($path.$fileName))
{
$fileName = "install_".date('Y-m-d').".xml";
}
file_put_contents($path.$fileName,$text,FILE_TEXT);
return true;
}