diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-09-08 19:19:01 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-09-08 19:19:01 +0000 |
commit | 013b73e6ec851cea0e72312acce3abeb0cabd472 (patch) | |
tree | 69a5e724f11bebc6d588f5a56526b9ebec7e38fb /themes | |
parent | 451dbd17a6317bf51bf9a39f5df25263a65b408f (diff) | |
download | brdo-013b73e6ec851cea0e72312acce3abeb0cabd472.tar.gz brdo-013b73e6ec851cea0e72312acce3abeb0cabd472.tar.bz2 |
- Patch #30122 by m3verick: changed include_once()'s to include "./$file"
for performance's sake.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/engines/phptemplate/phptemplate.engine | 4 |
1 files changed, 2 insertions, 2 deletions
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 |