phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: wcm/inc class.bosite.inc.php,1.9,1.10


From: Miles Lott <address@hidden>
Subject: [Phpgroupware-cvs] CVS: wcm/inc class.bosite.inc.php,1.9,1.10
Date: Sun, 24 Feb 2002 20:55:01 -0500

Update of /cvsroot/phpgroupware/wcm/inc
In directory subversions:/tmp/cvs-serv13502/inc

Modified Files:
        class.bosite.inc.php 
Log Message:
Page rebuild on demand based on expiration values now working



Index: class.bosite.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/wcm/inc/class.bosite.inc.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** class.bosite.inc.php        25 Feb 2002 01:11:45 -0000      1.9
--- class.bosite.inc.php        25 Feb 2002 01:54:59 -0000      1.10
***************
*** 203,207 ****
                }
  
!               function publish($siteid='')
                {
                        if(!$siteid)
--- 203,207 ----
                }
  
!               function publish($siteid='',$pageid='')
                {
                        if(!$siteid)
***************
*** 211,217 ****
--- 211,231 ----
                        $this->site = $this->read($siteid,True);
  
+                       /* allow limiting to one page */
+                       if($pageid)
+                       {
+                               while(list(,$page) = 
each($this->site['site_pages']))
+                               {
+                                       if($page['page_id'] = $pageid)
+                                       {
+                                               $tmp[] = $page;
+                                       }
+                               }
+                               $this->site['site_pages'] = $tmp;
+                               unset($tmp);
+                       }
                        $elements = CreateObject('wcm.boelement');
  
                        $SITE_ROOT = PHPGW_SERVER_ROOT . SEP . 'wcm' . SEP . 
'website' . SEP . 'templates';
+                       define('PHPGW_TEMPLATE_DIR', 
ExecMethod('phpgwapi.phpgw.common.get_tpl_dir', 'phpgwapi'));
  
                        $tpl = CreateObject('phpgwapi.Template',$SITE_ROOT);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]