From: Andrew Dolgov Date: Fri, 7 Dec 2012 05:36:14 +0000 (+0400) Subject: fix sharepopup/subscribe public handler actions in single user mode X-Git-Tag: 1.6.2~7 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=61a748f87ffa90359147ed6a3f20ee11603bf0d2;p=tt-rss.git fix sharepopup/subscribe public handler actions in single user mode --- diff --git a/classes/handler/public.php b/classes/handler/public.php index f2a7730c..4474182c 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -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 " @@ -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"]));