bypass replace_macros and use template processor directly for theme includes
This commit is contained in:
parent
dda4d689bb
commit
ddd58e6e28
@ -475,6 +475,8 @@ function format_js_if_exists($source) {
|
|||||||
|
|
||||||
function theme_include($file) {
|
function theme_include($file) {
|
||||||
|
|
||||||
|
global $t; // use builtin template processor
|
||||||
|
|
||||||
$paths = array(
|
$paths = array(
|
||||||
'view/theme/$theme/$ext/$file',
|
'view/theme/$theme/$ext/$file',
|
||||||
'view/theme/$theme/$file',
|
'view/theme/$theme/$file',
|
||||||
@ -492,7 +494,7 @@ function theme_include($file) {
|
|||||||
$parent = 'NOPATH';
|
$parent = 'NOPATH';
|
||||||
|
|
||||||
foreach($paths as $p) {
|
foreach($paths as $p) {
|
||||||
$f = replace_macros($p,array(
|
$f = $t->replace($p,array(
|
||||||
'$theme' => current_theme(),
|
'$theme' => current_theme(),
|
||||||
'$ext' => substr($file,strrpos($file,'.')+1),
|
'$ext' => substr($file,strrpos($file,'.')+1),
|
||||||
'$parent' => $parent,
|
'$parent' => $parent,
|
||||||
|
@ -1 +1 @@
|
|||||||
2012-12-27.182
|
2012-12-28.183
|
||||||
|
Reference in New Issue
Block a user