small code cleanup

This commit is contained in:
Michael Save 2012-05-20 20:22:19 +10:00
parent 4a48888b55
commit bb521da32e

View File

@ -1595,13 +1595,13 @@ function mod_config() {
}
}
if(!empty($config_append)) {
if (!empty($config_append)) {
$config_append = "\n// Changes made via web editor by \"" . $mod['username'] . "\" @ " . date('r') . ":\n" . $config_append . "\n";
if(!@file_put_contents('inc/instance-config.php', $config_append, FILE_APPEND)) {
if (!@file_put_contents('inc/instance-config.php', $config_append, FILE_APPEND)) {
$config_append = htmlentities($config_append);
if($config['minify_html'])
if ($config['minify_html'])
$config_append = str_replace("\n", '
', $config_append);
$page = array();
$page['title'] = 'Cannot write to file!';