summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-12-07 09:36:14 +0400
committerAndrew Dolgov <[email protected]>2012-12-07 09:36:14 +0400
commit61a748f87ffa90359147ed6a3f20ee11603bf0d2 (patch)
treed4cb89c6f594d93bae9a1cdff62b5e9c16babcd3 /classes
parentd5e9cf28f150e320bff705d476697483952cd785 (diff)
fix sharepopup/subscribe public handler actions in single user mode
Diffstat (limited to 'classes')
-rw-r--r--classes/handler/public.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php
index f2a7730c8..4474182cc 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 "<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"]));