Update of /cvsroot/phpslash/phpslash-ft/class
In directory usw-pr-cvs1:/tmp/cvs-serv20437/class
Modified Files:
Block_render_cal.class
Log Message:
make cal go to rooturl instead of PHP_SELF
Index: Block_render_cal.class
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/class/Block_render_cal.class,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Block_render_cal.class 5 Mar 2002 16:50:57 -0000 1.5
--- Block_render_cal.class 27 Apr 2002 21:58:17 -0000 1.6
***************
*** 14,19 ****
global $_PSL;
! $this->type = "cal"; /* set the 'type' */
! $this->output = ""; /* clear the output */
$this->psl = $_PSL;
}
--- 14,19 ----
global $_PSL;
! $this->type = 'cal'; /* set the 'type' */
! $this->output = ''; /* clear the output */
$this->psl = $_PSL;
}
***************
*** 29,33 ****
$templ = new Template($this->psl['templatedir']);
$templ->set_file(array(
! 'calendar' => "calendar.tpl"
));
$templ->debug=0;
--- 29,33 ----
$templ = new Template($this->psl['templatedir']);
$templ->set_file(array(
! 'calendar' => 'calendar.tpl'
));
$templ->debug=0;
***************
*** 92,96 ****
}
$templ->set_var(array(
! 'URL' => "$PHP_SELF?date=$url_date" . $url_day,
'LINKED_DATA' => "$daycounter"
));
--- 92,101 ----
}
$templ->set_var(array(
! //'URL' => "$PHP_SELF?date=$url_date" . $url_day,
! // assuming we want rooturl instead, as the only page
! // that can deal with this is index and if you put a cal on
! // the Home section then everything that looks at a page
! // will end up having bum links
! 'URL' => $this->psl['rooturl'] . "?date=$url_date" . $url_day,
'LINKED_DATA' => "$daycounter"
));
|