summaryrefslogtreecommitdiff
path: root/themes/engines/phptemplate
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-12-30 20:59:11 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-12-30 20:59:11 +0000
commit7d706a562d48e89afb1cb44390cf9b9f848e8fe6 (patch)
treeb3e5d28e1e685750841603978c55280dfc3bcae7 /themes/engines/phptemplate
parent3944fe38ecc71b60ca7a172358a9851c206a211f (diff)
downloadbrdo-7d706a562d48e89afb1cb44390cf9b9f848e8fe6.tar.gz
brdo-7d706a562d48e89afb1cb44390cf9b9f848e8fe6.tar.bz2
#105726 by moshe weitzman. Remove necessity to hard-code theme engine directories since they can change.
Diffstat (limited to 'themes/engines/phptemplate')
-rw-r--r--themes/engines/phptemplate/phptemplate.engine4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/engines/phptemplate/phptemplate.engine b/themes/engines/phptemplate/phptemplate.engine
index 02d365a32..c8892b097 100644
--- a/themes/engines/phptemplate/phptemplate.engine
+++ b/themes/engines/phptemplate/phptemplate.engine
@@ -376,12 +376,12 @@ function _phptemplate_default($hook, $variables, $suggestions = array(), $extens
}
else {
if (in_array($hook, array('node', 'block', 'box', 'comment'))) {
- $file = "themes/engines/$theme_engine/$hook$extension";
+ $file = path_to_engine() .'/'. $hook . $extension;
}
else {
$variables['hook'] = $hook;
watchdog('error', t('%engine.engine was instructed to override the %name theme function, but no valid template file was found.', array('%engine' => $theme_engine, '%name' => $hook)));
- $file = "themes/engines/$theme_engine/default$extension";
+ $file = path_to_engine() .'/default'. $extension;
}
}
}