[geeklog-cvs] geeklog: Fixed wrong "access denied" message when attempting to ...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Dec 5 13:47:28 EST 2009


changeset 7513:4193a3edc509
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/4193a3edc509
user: Dirk Haun <dirk at haun-online.de>
date: Sat Dec 05 16:32:55 2009 +0100
description:
Fixed wrong "access denied" message when attempting to view comments on a page that the user is not allowed to view (bug #0001043)

diffstat:

 plugins/staticpages/functions.inc |  4 ++--
 public_html/docs/history          |  2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r e055a3c14280 -r 4193a3edc509 plugins/staticpages/functions.inc
--- a/plugins/staticpages/functions.inc	Sat Dec 05 16:24:29 2009 +0100
+++ b/plugins/staticpages/functions.inc	Sat Dec 05 16:32:55 2009 +0100
@@ -127,7 +127,7 @@
 */
 function plugin_displaycomment_staticpages ($id, $cid, $title, $order, $format, $page, $view)
 {
-    global $_TABLES, $LANG_ACCESS;
+    global $_TABLES, $LANG_ACCESS, $LANG_STATIC;
 
     $retval = '';
 
@@ -151,7 +151,7 @@
     } else {
         $retval .= COM_startBlock ($LANG_ACCESS['accessdenied'], '',
                         COM_getBlockTemplate ('_msg_block', 'header'))
-                . $LANG_ACCESS['storydenialmsg']
+                . $LANG_STATIC['deny_msg']
                 . COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
     }
 
diff -r e055a3c14280 -r 4193a3edc509 public_html/docs/history
--- a/public_html/docs/history	Sat Dec 05 16:24:29 2009 +0100
+++ b/public_html/docs/history	Sat Dec 05 16:32:55 2009 +0100
@@ -21,6 +21,8 @@
 
 Static Pages Plugin 1.6.2
 -------------------
+- Fixed wrong "access denied" message when attempting to view comments on a page
+  that the user is not allowed to view (bug #0001043) [Dirk]
 - Fixed comment bar Refresh button (bug #0001043) [Dirk]
 - Hide meta tag entry fields from Static Page editor when meta tag support is
   disabled [Dirk]



More information about the geeklog-cvs mailing list