Changeset 1689 for trunk/gregarius/cls/rss.php
- Timestamp:
- 02/07/07 09:02:17 (22 months ago)
- Files:
-
- 1 modified
-
trunk/gregarius/cls/rss.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/cls/rss.php
r1668 r1689 116 116 } 117 117 118 119 /**120 * //DEPRECATED!121 122 function getCachedTemplateFile($file) {123 static $templateCache = array();124 $filename = $this->getTemplateFile($file);125 if (array_key_exists($filename, $templateCache)) {126 return $templateCache[$filename];127 }128 $fileContent = file_get_contents(GREGARIUS_HOME . $filename);129 $modifiedFileContent = eval_mixed($fileContent);130 $templateCache[$filename] = $modifiedFileContent;131 132 return $modifiedFileContent;133 }134 135 */136 118 137 119 function renderWithTemplate($template,$mainDivId="items") { 138 120 139 121 $this->_pf('start rendering'); 140 if (!($this->header->options & HDR_NO_OUPUTBUFFERING)) {122 if (!($this->header->options & HDR_NO_OUPUTBUFFERING)) { 141 123 if (getConfig('rss.output.compression')) { 142 124 @ob_start('ob_gzhandler'); … … 147 129 header('Content-Type: text/html; charset=' 148 130 . (getConfig('rss.output.encoding') ? getConfig('rss.output.encoding') : DEFAULT_OUTPUT_ENCODING)); 149 150 131 } 151 132
