diff --git a/core.php b/core.php
index 3247a5f..70058e3 100644
--- a/core.php
+++ b/core.php
@@ -819,7 +819,7 @@ switch($_GET["action"])
$log .= "done.\n";
$log .= "Update complete. I am now running on the latest version of $sitename.";
- $log .= "The version number that I have updated to can be found on the credits or help ages."
+ $log .= "The version number that I have updated to can be found on the credits or help ages.";
exit(renderpage("Update - Success", "
- " . implode("
- ", explode("\n", $log)) . "
"));
diff --git a/index.php b/index.php
index 9cde90a..865c01e 100755
--- a/index.php
+++ b/index.php
@@ -935,9 +935,15 @@ switch($_GET["action"])
$code = substr($newcode, strpos($newcode, $settings_separator));
$result = $settings . $code;
$log .= "done.\n";
- header("content-type: text/php");
- echo("$log\n\n");
- exit($result);
+
+ $log .= "Saving...";
+ file_put_contents(__FILE__, $result);
+ $log .= "done.\n";
+
+ $log .= "Update complete. I am now running on the latest version of $sitename.";
+ $log .= "The version number that I have updated to can be found on the credits or help ages.";
+
+ exit(renderpage("Update - Success", "- " . implode("
- ", explode("\n", $log)) . "
"));
break;