Changeset 23588
- Timestamp:
- Jun 27, 2013, 6:37:38 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/template.class.php
r23495 r23588 407 407 } 408 408 409 $this->output = substr_replace( $this->output, "\n".implode( "\n", $content ), $pos, strlen(self::COMBINED_SCRIPTS_TAG) );409 $this->output = substr_replace( $this->output, implode( "\n", $content ), $pos, strlen(self::COMBINED_SCRIPTS_TAG) ); 410 410 } //else maybe error or warning ? 411 411 } … … 575 575 } 576 576 577 function func_define_derivative($params )577 function func_define_derivative($params, $smarty) 578 578 { 579 579 !empty($params['name']) or fatal_error('define_derivative missing name'); … … 581 581 { 582 582 $derivative = ImageStdParams::get_by_type($params['type']); 583 $ this->smarty->assign( $params['name'], $derivative);583 $smarty->assign( $params['name'], $derivative); 584 584 return; 585 585 } … … 613 613 } 614 614 615 $ this->smarty->assign( $params['name'], ImageStdParams::get_custom($w, $h, $crop, $minw, $minh) );615 $smarty->assign( $params['name'], ImageStdParams::get_custom($w, $h, $crop, $minw, $minh) ); 616 616 } 617 617 … … 831 831 foreach($tags as $tag) 832 832 { 833 array_push($regex, "#^[ \t]+($ldq$tag"."[^$ld$rd]*$rdq)\s*$#m");834 array_push($regex, "#^[ \t]+($ldq/$tag$rdq)\s*$#m");833 $regex[] = "#^[ \t]+($ldq$tag"."[^$ld$rd]*$rdq)\s*$#m"; 834 $regex[] = "#^[ \t]+($ldq/$tag$rdq)\s*$#m"; 835 835 } 836 836 $tags = array('include','else','combine_script','html_head'); 837 837 foreach($tags as $tag) 838 838 { 839 array_push($regex, "#^[ \t]+($ldq$tag"."[^$ld$rd]*$rdq)\s*$#m");839 $regex[] = "#^[ \t]+($ldq$tag"."[^$ld$rd]*$rdq)\s*$#m"; 840 840 } 841 841 $source = preg_replace( $regex, "$1", $source); … … 867 867 if (file_exists(PHPWG_ROOT_PATH.$f)) 868 868 { 869 array_push($css, "{combine_css path='$f' order=10}");869 $css[] = "{combine_css path='$f' order=10}"; 870 870 } 871 871 } … … 873 873 if (file_exists(PHPWG_ROOT_PATH.$f)) 874 874 { 875 array_push($css, "{combine_css path='$f' order=10}");875 $css[] = "{combine_css path='$f' order=10}"; 876 876 } 877 877
Note: See TracChangeset
for help on using the changeset viewer.