Staticpages dont have topics, things are never as simple as copy and paste... HEAD
authorSami Barakat
Tue Oct 20 22:53:07 2009 +0100 (4 months ago)
branchHEAD
changeset 73902b5aac1d58f8
parent 7389abd5bf00c26b
child 73910bee991937cc
Staticpages dont have topics, things are never as simple as copy and paste...
plugins/staticpages/functions.inc
     1.1 --- a/plugins/staticpages/functions.inc	Sun Oct 18 02:25:07 2009 +0100
     1.2 +++ b/plugins/staticpages/functions.inc	Tue Oct 20 22:53:07 2009 +0100
     1.3 @@ -638,12 +638,9 @@
     1.4  
     1.5      $sql .= "FROM {$_TABLES['users']} AS u, {$_TABLES['comments']} AS c ";
     1.6      $sql .= "LEFT JOIN {$_TABLES['staticpage']} AS s ON ((s.sp_id = c.sid) ";
     1.7 -    $sql .= COM_getPermSQL('AND',0,2,'s') . COM_getTopicSQL('AND',0,'s') . COM_getLangSQL('sid','AND','s') . ") ";
     1.8 +    $sql .= COM_getPermSQL('AND',0,2,'s') . COM_getLangSQL('sid','AND','s') . ") ";
     1.9      $sql .= "WHERE (u.uid = c.uid) AND (s.commentcode >= 0) AND (s.sp_date <= NOW()) ";
    1.10  
    1.11 -    if (!empty($topic)) {
    1.12 -        $sql .= "AND (s.tid = '$topic') ";
    1.13 -    }
    1.14      if (!empty($author)) {
    1.15          $sql .= "AND (c.uid = '$author') ";
    1.16      }