mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Database > Export : Rename file if theme/install/install.xml already exists.
This commit is contained in:
@@ -1005,7 +1005,14 @@ class xmlClass
|
|||||||
$path = e107::getParser()->replaceConstants($this->filePathDestination);
|
$path = e107::getParser()->replaceConstants($this->filePathDestination);
|
||||||
if($path)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user