]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix some minor typos and stuff
authorAndrew Dolgov <noreply@fakecake.org>
Sun, 7 Jun 2015 15:41:18 +0000 (18:41 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sun, 7 Jun 2015 15:41:18 +0000 (18:41 +0300)
classes/db/pdo.php
classes/dlg.php
classes/feeds.php
classes/pref/prefs.php
js/tt-rss.js

index 126f5150a75365ff64b2ed82a0cac202114832a8..3aeebbe678fea9184cb1362359b5839f5fe6cb97 100644 (file)
@@ -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;
index e3931bc3ae7c3eaee00f8ac30b0e050f353105e5..eee720ed40a25c271c706e26790d9a400b90d1dd 100644 (file)
@@ -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
 
index 52c3be97fff7628ab429f66b7d7e6b5c1eee9d05..261538cd3ee73cd0ff51c5313700221c6dca4d59 100644 (file)
@@ -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;
index bc7d9212f233faf9e02a838a4fd1d8b520f8f41d..6c33170bdbca5d2b1929fa1bd3789c6821619be3 100644 (file)
@@ -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"]);
index 38182c7ad981f7b90ce746b9376779b7237d0f6d..08602c8e5ffacbae176b8bf476c3beffae147b13 100644 (file)
@@ -767,7 +767,7 @@ function parse_runtime_info(data) {
                }
 
                if (k == "daemon_is_running" && v != 1) {
-                       notify_error("<span onclick=\"javascript:explainError(1)\">Update daemon is not running.</span>", true);
+                       notify_error("<span onclick=\"explainError(1)\">Update daemon is not running.</span>", true);
                        return;
                }
 
@@ -782,7 +782,7 @@ function parse_runtime_info(data) {
                }
 
                if (k == "daemon_stamp_ok" && v != 1) {
-                       notify_error("<span onclick=\"javascript:explainError(3)\">Update daemon is not updating feeds.</span>", true);
+                       notify_error("<span onclick=\"explainError(3)\">Update daemon is not updating feeds.</span>", true);
                        return;
                }