Commit cad3135f authored by Steven Wittens's avatar Steven Wittens

#13531: Xtemplate {directory} tag

parent 87314b80
......@@ -13,7 +13,9 @@ function xtemplate_init($template) {
include_once('themes/engines/xtemplate/xtemplate.inc');
}
$GLOBALS["xtemplate"] = new StdClass();
$GLOBALS['xtemplate']->template = new XTemplate(basename($template->filename), dirname($template->filename));
$dir = dirname($template->filename);
$GLOBALS['xtemplate']->template = new XTemplate(basename($template->filename), $dir);
$GLOBALS['xtemplate']->template->assign(array('directory' => $dir));
$GLOBALS['xtemplate']->template->SetNullBlock(' '); // '' doesn't work!
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment