summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-08-22 17:03:42 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-08-22 17:03:42 +0000
commit51cf18e53176244f264c56cab1c4ff0d1767ac59 (patch)
tree833a665ab48dd0d3a54676d78aa9152b0699f21e /themes
parent95cb7f32229e229a39e70a76b2b0f6a14cdc5953 (diff)
downloadbrdo-51cf18e53176244f264c56cab1c4ff0d1767ac59.tar.gz
brdo-51cf18e53176244f264c56cab1c4ff0d1767ac59.tar.bz2
- #9292: Make Drupal (somewhat) PHP5 compatible. xtemplate is still horribly broken.
Diffstat (limited to 'themes')
-rw-r--r--themes/chameleon/chameleon.theme1
-rw-r--r--themes/engines/xtemplate/xtemplate.engine1
2 files changed, 2 insertions, 0 deletions
diff --git a/themes/chameleon/chameleon.theme b/themes/chameleon/chameleon.theme
index 44df7589b..154cb2e4b 100644
--- a/themes/chameleon/chameleon.theme
+++ b/themes/chameleon/chameleon.theme
@@ -129,6 +129,7 @@ function chameleon_node($node, $main = 0, $page = 0) {
$submitted = theme_get_setting("toggle_node_info_$node->type") ? array(t("By %author at %date", array('%author' => format_name($node), '%date' => format_date($node->created, 'small')))) : array();
+ $terms = array();
if (module_exist('taxonomy')) {
$terms = taxonomy_link("taxonomy terms", $node);
}
diff --git a/themes/engines/xtemplate/xtemplate.engine b/themes/engines/xtemplate/xtemplate.engine
index 6bcffc65a..2b91f70d7 100644
--- a/themes/engines/xtemplate/xtemplate.engine
+++ b/themes/engines/xtemplate/xtemplate.engine
@@ -12,6 +12,7 @@ function xtemplate_init($template) {
if (!class_exists('XTemplate')) {
include_once('themes/engines/xtemplate/xtemplate.inc');
}
+ $GLOBALS["xtemplate"] = new StdClass();
$GLOBALS['xtemplate']->template = new XTemplate(basename($template->filename), dirname($template->filename));
$GLOBALS['xtemplate']->template->SetNullBlock(' '); // '' doesnt work!
}