From 013b73e6ec851cea0e72312acce3abeb0cabd472 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 8 Sep 2005 19:19:01 +0000 Subject: - Patch #30122 by m3verick: changed include_once()'s to include "./$file" for performance's sake. --- themes/engines/phptemplate/phptemplate.engine | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'themes') diff --git a/themes/engines/phptemplate/phptemplate.engine b/themes/engines/phptemplate/phptemplate.engine index 37a4b315d..653020169 100644 --- a/themes/engines/phptemplate/phptemplate.engine +++ b/themes/engines/phptemplate/phptemplate.engine @@ -9,7 +9,7 @@ function phptemplate_init($template) { $file = dirname($template->filename) . '/template.php'; if (file_exists($file)) { - include_once($file); + include_once "./$file"; } } @@ -333,7 +333,7 @@ function _phptemplate_default($hook, $variables, $file = NULL) { if ($file) { extract($variables, EXTR_SKIP); // Extract the vars to local namespace ob_start(); // Start output buffering - include($file); // Include the file + include "./$file"; // Include the file $contents = ob_get_contents(); // Get the contents of the buffer ob_end_clean(); // End buffering and discard return $contents; // Return the contents -- cgit v1.2.3