Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11108/functions
Modified Files:
template.php
Log Message:
Modified for speed and stat errors.
Index: template.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/template.php,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** template.php 13 Aug 2004 22:30:10 -0000 1.51
--- template.php 18 Aug 2004 00:08:33 -0000 1.52
***************
*** 904,910 ****
foreach ($tags as $tag => $data) {
- // This opens up another template and parses it as well.
- $data = (file_exists($data)) ? $this->parse($data) : $data;
-
// This removes any unfilled tags
if (!$data) {
--- 904,907 ----
***************
*** 915,921 ****
$this->page = str_replace('{' . strtoupper($tag) . '}', $data, $this->page);
}
!
! else
! die('No tags designated for replacement.');
}
--- 912,923 ----
$this->page = str_replace('{' . strtoupper($tag) . '}', $data, $this->page);
}
! }
!
! function replace_files($tags = array()) {
! if (sizeof($tags) > 0)
! foreach ($tags as $tag => $data) {
! // This opens up another template and parses it as well.
! $data = (file_exists($data)) ? $this->parse($data) : $data;
! }
}
|