summaryrefslogtreecommitdiff
path: root/classes/pref/system.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-29 23:12:54 +0400
committerAndrew Dolgov <[email protected]>2013-04-29 23:12:54 +0400
commit52e7b5a096f5d0d7724b6f1731559b237b2c47ae (patch)
tree966e649f054221384388684f193ed521e9e164bc /classes/pref/system.php
parent39ede9862f1df94b24cbe476ec66eca99a1d1a2f (diff)
add clear sql log button
Diffstat (limited to 'classes/pref/system.php')
-rw-r--r--classes/pref/system.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/pref/system.php b/classes/pref/system.php
index d2b6cd746..7accb1f91 100644
--- a/classes/pref/system.php
+++ b/classes/pref/system.php
@@ -19,6 +19,10 @@ class Pref_System extends Handler_Protected {
return array_search($method, $csrf_ignored) !== false;
}
+ function clearLog() {
+ $this->dbh->query("DELETE FROM ttrss_error_log");
+ }
+
function index() {
print "<div dojoType=\"dijit.layout.AccordionContainer\" region=\"center\">";
@@ -35,6 +39,9 @@ class Pref_System extends Handler_Protected {
print "<button dojoType=\"dijit.form.Button\"
onclick=\"updateSystemList()\">".__('Refresh')."</button> ";
+ print "&nbsp;<button dojoType=\"dijit.form.Button\"
+ onclick=\"clearSqlLog()\">".__('Clear log')."</button> ";
+
print "<p><table width=\"100%\" cellspacing=\"10\" class=\"prefErrorLog\">";
print "<tr class=\"title\">