[geeklog-cvs] geeklog-1.3/plugins/staticpages functions.inc,1.23,1.24

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Fri Jun 27 09:44:51 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/plugins/staticpages
In directory internal.geeklog.net:/tmp/cvs-serv10381/plugins/staticpages

Modified Files:
	functions.inc 
Log Message:
The Static Pages "Topic" selection now works like the one for blocks, i.e. you can have pages for one topic only, the homepage only, or all pages (all topic pages and the homepage).


Index: functions.inc
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/plugins/staticpages/functions.inc,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** functions.inc	26 Jun 2003 18:36:44 -0000	1.23
--- functions.inc	27 Jun 2003 13:44:49 -0000	1.24
***************
*** 361,368 ****
      }
  
      if (empty ($topic)) {
!         $moresql = "(sp_where = $where) AND (sp_tid = 'none')";
      } else {
!         $moresql = "(sp_where = $where) AND (sp_tid = '{$topic}')";
      }
  
--- 361,369 ----
      }
  
+     $moresql = "(sp_where = $where) AND ";
      if (empty ($topic)) {
!         $moresql .= "((sp_tid = 'none') OR (sp_tid = 'all'))";
      } else {
!         $moresql .= "((sp_tid = '{$topic}') OR (sp_tid = 'all'))";
      }
  





More information about the geeklog-cvs mailing list