Prevent an error message if the directory doesn't exist.
This commit is contained in:
parent
be257eeb03
commit
5ed64d2be4
|
|
@ -809,10 +809,12 @@ if (!class_exists('modules')) {
|
|||
$xml .= " </modules>\n";
|
||||
$xml .= "</configuration>";
|
||||
|
||||
$fout = fopen($_SESSION['switch']['conf']['dir']."/autoload_configs/modules.conf.xml","w");
|
||||
fwrite($fout, $xml);
|
||||
unset($xml);
|
||||
fclose($fout);
|
||||
if (file_exists($_SESSION['switch']['conf']['dir'].'/autoload_configs')) {
|
||||
$fout = fopen($_SESSION['switch']['conf']['dir']."/autoload_configs/modules.conf.xml","w");
|
||||
fwrite($fout, $xml);
|
||||
unset($xml);
|
||||
fclose($fout);
|
||||
}
|
||||
|
||||
//apply settings
|
||||
$_SESSION["reload_xml"] = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue