summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stats.php3
-rw-r--r--tt-rss.js7
2 files changed, 1 insertions, 9 deletions
diff --git a/stats.php b/stats.php
index 730bea252..1d7d5efc0 100644
--- a/stats.php
+++ b/stats.php
@@ -12,8 +12,7 @@
login_sequence($link);
if ($_SESSION["access_level"] < 10) {
- header("Location: error.php?c=8");
- exit;
+ header("Location: login.php"); die;
}
?>
diff --git a/tt-rss.js b/tt-rss.js
index 9b77aa53a..81c1c40fe 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -699,13 +699,6 @@ function debug(msg) {
}
function fatalError(code, message) {
-/* if (!params) {
- window.location = "error.php?c=" + param_escape(code);
- } else {
- window.location = "error.php?c=" + param_escape(code) +
- "&p=" + param_escape(params);
- } */
-
try {
var fe = document.getElementById("fatal_error");
var fc = document.getElementById("fatal_error_msg");