]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix sharepopup/subscribe public handler actions in single user mode
authorAndrew Dolgov <fox@fakecake.org>
Fri, 7 Dec 2012 05:36:14 +0000 (09:36 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Fri, 7 Dec 2012 05:36:14 +0000 (09:36 +0400)
classes/handler/public.php

index f2a7730c895f9a9e961d486b623aed1a0b96daa6..4474182cc05c8f5d37a7af1d0886f32de10ff2e5 100644 (file)
@@ -377,6 +377,10 @@ class Handler_Public extends Handler {
        }
 
        function sharepopup() {
+               if (SINGLE_USER_MODE) {
+                       login_sequence($this->link);
+               }
+
                header('Content-Type: text/html; charset=utf-8');
                print "<html>
                                <head>
@@ -542,6 +546,10 @@ class Handler_Public extends Handler {
        }
 
        function subscribe() {
+               if (SINGLE_USER_MODE) {
+                       login_sequence($this->link);
+               }
+
                if ($_SESSION["uid"]) {
 
                        $feed_url = db_escape_string(trim($_REQUEST["feed_url"]));