1
0
Fork 0

fix #1 - saving of config files

Dieser Commit ist enthalten in:
o.pinke 2022-03-11 18:33:58 +01:00
Ursprung 3ea22223d6
Commit f0585f18c2
2 geänderte Dateien mit 7 neuen und 7 gelöschten Zeilen

Datei anzeigen

@ -688,12 +688,12 @@ function mr_setConfiguration($clientId, array $config) {
if(file_exists($sConfigClientPath) && is_writable($sConfigClientPath)) {
$file = $sConfigClientPath. 'config.mod_rewrite.php';
} else {
} else {
$file = cRegistry::getConfigValue('path', 'contenido') . cRegistry::getConfigValue('path', 'plugins') . 'cl-mod-rewrite/includes/config.mod_rewrite_' . cRegistry::getClientId() . '.php';
}
$result = file_put_contents($file, serialize($config));
return ($result) ? true : false;
return (empty($result)) ? false : true;
}
/**