summaryrefslogtreecommitdiff
path: root/themes/engines
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-02-02 12:44:57 +0000
committerDries Buytaert <dries@buytaert.net>2006-02-02 12:44:57 +0000
commit048bec139e022952d90c10b2ddb34f06dec607be (patch)
tree1a7d6101d8b2ea36671dc23ee56a88da64d95721 /themes/engines
parentb0051893981780d7619c180aaa6a5fca7adfb039 (diff)
downloadbrdo-048bec139e022952d90c10b2ddb34f06dec607be.tar.gz
brdo-048bec139e022952d90c10b2ddb34f06dec607be.tar.bz2
- Patch #13148 by Morbus: less globals.
Diffstat (limited to 'themes/engines')
-rw-r--r--themes/engines/phptemplate/phptemplate.engine5
1 files changed, 2 insertions, 3 deletions
diff --git a/themes/engines/phptemplate/phptemplate.engine b/themes/engines/phptemplate/phptemplate.engine
index 6aa99f7f2..d28423acf 100644
--- a/themes/engines/phptemplate/phptemplate.engine
+++ b/themes/engines/phptemplate/phptemplate.engine
@@ -140,9 +140,8 @@ function phptemplate_features() {
* into a pluggable template engine.
*/
function phptemplate_page($content) {
- global $base_path;
- /* Set title and breadcrumb to declared values */
+ /* Set title and breadcrumb to declared values */
if ($_GET['q'] == variable_get('site_frontpage', 'node')) {
$mission = theme_get_setting('mission');
$frontpage = true;
@@ -186,7 +185,7 @@ function phptemplate_page($content) {
}
$variables = array(
- 'base_path' => $base_path,
+ 'base_path' => base_path(),
'breadcrumb' => theme('breadcrumb', drupal_get_breadcrumb()),
'closure' => theme('closure'),
'content' => '<!-- begin content -->' . $content . '<!-- end content -->',