Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
59558ede
Commit
59558ede
authored
Dec 24, 2004
by
Steven Wittens
Browse files
#13531
: Xtemplate {directory} tag
parent
fde5f1bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
themes/engines/xtemplate/xtemplate.engine
View file @
59558ede
...
...
@@ -13,7 +13,9 @@ function xtemplate_init($template) {
include_once
(
dirname
(
__FILE__
)
.
'/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!
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment