indent
This commit is contained in:
parent
e705cfceb9
commit
132f169963
|
@ -78,7 +78,7 @@ class TplBlock {
|
||||||
'/' . self::blockStartStart . preg_quote($prefix . $blocName) . self::blockStartEnd .
|
'/' . self::blockStartStart . preg_quote($prefix . $blocName) . self::blockStartEnd .
|
||||||
'(.*?)'.
|
'(.*?)'.
|
||||||
self::blockEndStart . preg_quote($prefix . $blocName). self::blockEndEnd.
|
self::blockEndStart . preg_quote($prefix . $blocName). self::blockEndEnd.
|
||||||
'/is',
|
'/is',
|
||||||
function($m) use($blocName,$blocsArr,$prefix, $trim) {
|
function($m) use($blocName,$blocsArr,$prefix, $trim) {
|
||||||
$out = "";
|
$out = "";
|
||||||
foreach($blocsArr as $bloc){
|
foreach($blocsArr as $bloc){
|
||||||
|
@ -86,13 +86,14 @@ class TplBlock {
|
||||||
$out.=$bloc->apply_tpl_str( $m[1] , $prefix . $blocName , $trim );
|
$out.=$bloc->apply_tpl_str( $m[1] , $prefix . $blocName , $trim );
|
||||||
}
|
}
|
||||||
return $out;
|
return $out;
|
||||||
}
|
},
|
||||||
,$str
|
$str
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
//delete unused blocs
|
//delete unused blocs
|
||||||
//to do
|
// TODO
|
||||||
|
|
||||||
|
|
||||||
if($trim){
|
if($trim){
|
||||||
return trim($str,"\n");
|
return trim($str,"\n");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user