aboutsummaryrefslogtreecommitdiffstats
path: root/notification.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-01-24 05:07:08 +0000
committerrvelices <rv-github@modusoptimus.com>2007-01-24 05:07:08 +0000
commit585d7c434e9dfdadd3d6755f0af7957f20f6b5a9 (patch)
tree1ff919c24113089bd503e3439eb88daec1c7085e /notification.php
parentd71f764762c13927b8dd2a94dd4be8b734b35090 (diff)
- plugins with own independent scripts work now (cookie_path and url root are
correct) - prepare a bit some url functions so that later we can fully embed pwg in scripts located outside pwg - remove some unnecessary language strings git-svn-id: http://piwigo.org/svn/trunk@1750 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'notification.php')
-rw-r--r--notification.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/notification.php b/notification.php
index a1250428c..4154501c9 100644
--- a/notification.php
+++ b/notification.php
@@ -51,8 +51,18 @@ INSERT INTO '.USER_FEED_TABLE.'
;';
pwg_query($query);
-$feed_url=PHPWG_ROOT_PATH.'feed.php?feed='.$page['feed'];
-$feed_image_only_url=$feed_url.'&amp;image_only';
+
+$feed_url=PHPWG_ROOT_PATH.'feed.php';
+if ($user['is_the_guest'])
+{
+ $feed_image_only_url=$feed_url;
+ $feed_url .= '?feed='.$page['feed'];
+}
+else
+{
+ $feed_url .= '?feed='.$page['feed'];
+ $feed_image_only_url=$feed_url.'&amp;image_only';
+}
// +-----------------------------------------------------------------------+
// | template initialization |