Changeset 1753 for trunk/include/template.php
- Timestamp:
- Jan 25, 2007, 3:18:56 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/template.php
r1719 r1753 103 103 104 104 /** 105 * Sets the template filename for handle. 106 */ 107 function set_filename($handle, $filename) 108 { 109 return $this->set_filenames( array($handle=>$filename) ); 110 } 111 112 /** 105 113 * Sets the template filenames for handles. $filename_array should be a 106 114 * hash of handle => filename pairs. … … 116 124 while(list($handle, $filename) = each($filename_array)) 117 125 { 118 $this->files[$handle] = $this->make_filename($filename); 126 if (is_null($filename)) 127 { 128 unset( $this->files[$handle] ); 129 } 130 else 131 { 132 $this->files[$handle] = $this->make_filename($filename); 133 } 134 unset($this->compiled_code[$handle]); 135 unset($this->uncompiled_code[$handle]); 119 136 } 120 137
Note: See TracChangeset
for help on using the changeset viewer.