diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-11-24 22:44:01 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-11-24 22:44:01 +0000 |
commit | 5d759ccbb9764e4c0328ce7fc4a83df8b958cf85 (patch) | |
tree | 99a4f638669ab176c5714c87cb982c19dab04528 /themes | |
parent | 062a8abdeae40ab03004f7c11dc21b7a13b57ca1 (diff) | |
download | brdo-5d759ccbb9764e4c0328ce7fc4a83df8b958cf85.tar.gz brdo-5d759ccbb9764e4c0328ce7fc4a83df8b958cf85.tar.bz2 |
- Patch #5942 by jhriggs and Adrian:
+ added support for multi-site configurations.
+ tidied up some old cruft and added code comments.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/engines/xtemplate/xtemplate.engine | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/engines/xtemplate/xtemplate.engine b/themes/engines/xtemplate/xtemplate.engine index 253e3e85a..b92c2d959 100644 --- a/themes/engines/xtemplate/xtemplate.engine +++ b/themes/engines/xtemplate/xtemplate.engine @@ -10,15 +10,15 @@ function xtemplate_init($template) { // We cannot use the theme() or path_to_theme() functions here if (!class_exists('XTemplate')) { - include_once('themes/engines/xtemplate/xtemplate.inc'); + include_once(dirname(__FILE__) . '/xtemplate.inc'); } $GLOBALS["xtemplate"] = new StdClass(); $GLOBALS['xtemplate']->template = new XTemplate(basename($template->filename), dirname($template->filename)); $GLOBALS['xtemplate']->template->SetNullBlock(' '); // '' doesn't work! } -function xtemplate_templates($directory) { - return file_scan_directory($directory, 'xtemplate.xtmpl$'); +function xtemplate_templates() { + return system_listing('^xtemplate\.xtmpl$', 'themes', 'filename'); } function xtemplate_features() { |