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