[geeklog-cvs] geeklog: Staticpages dont have topics, things are never as simpl...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Tue Oct 20 17:55:11 EDT 2009


changeset 7390:2b5aac1d58f8
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/2b5aac1d58f8
user: Sami Barakat
date: Tue Oct 20 22:53:07 2009 +0100
description:
Staticpages dont have topics, things are never as simple as copy and paste...

diffstat:

 plugins/staticpages/functions.inc |  5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diffs (17 lines):

diff -r abd5bf00c26b -r 2b5aac1d58f8 plugins/staticpages/functions.inc
--- a/plugins/staticpages/functions.inc	Sun Oct 18 02:25:07 2009 +0100
+++ b/plugins/staticpages/functions.inc	Tue Oct 20 22:53:07 2009 +0100
@@ -638,12 +638,9 @@
 
     $sql .= "FROM {$_TABLES['users']} AS u, {$_TABLES['comments']} AS c ";
     $sql .= "LEFT JOIN {$_TABLES['staticpage']} AS s ON ((s.sp_id = c.sid) ";
-    $sql .= COM_getPermSQL('AND',0,2,'s') . COM_getTopicSQL('AND',0,'s') . COM_getLangSQL('sid','AND','s') . ") ";
+    $sql .= COM_getPermSQL('AND',0,2,'s') . COM_getLangSQL('sid','AND','s') . ") ";
     $sql .= "WHERE (u.uid = c.uid) AND (s.commentcode >= 0) AND (s.sp_date <= NOW()) ";
 
-    if (!empty($topic)) {
-        $sql .= "AND (s.tid = '$topic') ";
-    }
     if (!empty($author)) {
         $sql .= "AND (c.uid = '$author') ";
     }



More information about the geeklog-cvs mailing list