From 52e7b5a096f5d0d7724b6f1731559b237b2c47ae Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 29 Apr 2013 23:12:54 +0400 Subject: add clear sql log button --- classes/pref/system.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'classes/pref') 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 "
"; @@ -35,6 +39,9 @@ class Pref_System extends Handler_Protected { print " "; + print "  "; + print "

"; print " -- cgit v1.2.3