Changeset a98ee35 in github
- Timestamp:
- Aug 26, 2011 5:22:53 AM (22 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.7, release-0.8
- Children:
- 20ed379
- Parents:
- da71783
- File:
-
- 1 edited
-
program/include/rcube_html_page.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_html_page.php
r909a3ac ra98ee35 213 213 $this->add_script('$(document).ready(function(){ ' . $this->scripts['docready'] . "\n});", 'foot'); 214 214 } 215 215 216 216 if (is_array($this->script_files['foot'])) { 217 217 foreach ($this->script_files['foot'] as $file) { … … 247 247 // add page hader 248 248 if ($hpos) { 249 $output = substr ($output,0,$hpos) . $page_header . substr($output,$hpos,strlen($output));249 $output = substr_replace($output, $page_header, $hpos, 0); 250 250 } 251 251 else { … … 255 255 // add page footer 256 256 if (($fpos = strripos($output, '</body>')) || ($fpos = strripos($output, '</html>'))) { 257 $output = substr ($output, 0, $fpos) . "$page_footer\n" . substr($output, $fpos);257 $output = substr_replace($output, $page_footer."\n", $fpos, 0); 258 258 } 259 259 else { … … 269 269 $css .= sprintf($this->link_css_file, $file); 270 270 } 271 $output = substr ($output, 0, $pos) . $css . substr($output, $pos);271 $output = substr_replace($output, $css, $pos, 0); 272 272 } 273 273 … … 290 290 } 291 291 } 292 292 293 293 /** 294 294 * Callback function for preg_replace_callback in write()
Note: See TracChangeset
for help on using the changeset viewer.
