diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/db/pdo.php | 1 | ||||
-rw-r--r-- | classes/dlg.php | 3 | ||||
-rw-r--r-- | classes/feeds.php | 4 | ||||
-rw-r--r-- | classes/pref/prefs.php | 15 |
4 files changed, 6 insertions, 17 deletions
diff --git a/classes/db/pdo.php b/classes/db/pdo.php index 126f5150a..3aeebbe67 100644 --- a/classes/db/pdo.php +++ b/classes/db/pdo.php @@ -88,6 +88,7 @@ class Db_PDO implements IDb { $this->query("set client_encoding = 'UTF-8'"); $this->query("set datestyle = 'ISO, european'"); $this->query("set TIME ZONE 0"); + return; case "mysql": $this->query("SET time_zone = '+0:0'"); return; diff --git a/classes/dlg.php b/classes/dlg.php index e3931bc3a..eee720ed4 100644 --- a/classes/dlg.php +++ b/classes/dlg.php @@ -1,8 +1,9 @@ <?php class Dlg extends Handler_Protected { private $param; + private $params; - function before($method) { + function before($method) { if (parent::before($method)) { header("Content-Type: text/html"); # required for iframe diff --git a/classes/feeds.php b/classes/feeds.php index 52c3be97f..261538cd3 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -3,7 +3,9 @@ require_once "colors.php"; class Feeds extends Handler_Protected { - function csrf_ignore($method) { + private $params; + + function csrf_ignore($method) { $csrf_ignored = array("index", "feedbrowser", "quickaddfeed", "search"); return array_search($method, $csrf_ignored) !== false; diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index bc7d9212f..6c33170bd 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -127,21 +127,6 @@ class Pref_Prefs extends Handler_Protected { } } - function getHelp() { - - $pref_name = $this->dbh->escape_string($_REQUEST["pn"]); - - $result = $this->dbh->query("SELECT help_text FROM ttrss_prefs - WHERE pref_name = '$pref_name'"); - - if ($this->dbh->num_rows($result) > 0) { - $help_text = $this->dbh->fetch_result($result, 0, "help_text"); - print $help_text; - } else { - printf(__("Unknown option: %s"), $pref_name); - } - } - function changeemail() { $email = $this->dbh->escape_string($_POST["email"]); |