summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-09-04 13:52:08 +0000
committerDries Buytaert <dries@buytaert.net>2005-09-04 13:52:08 +0000
commit3ace768e5015bd7d43e8558118676b73ba8cbd51 (patch)
tree519ff427b3bda94de0cf5ed547ca6148ccea1476 /themes
parent0094e99b8733b23a94cd0283909fae6e1dce8720 (diff)
downloadbrdo-3ace768e5015bd7d43e8558118676b73ba8cbd51.tar.gz
brdo-3ace768e5015bd7d43e8558118676b73ba8cbd51.tar.bz2
- Patch by Rober: better fix for the extract() namespace problem in phptemplate.engine.
Diffstat (limited to 'themes')
-rw-r--r--themes/engines/phptemplate/phptemplate.engine13
1 files changed, 6 insertions, 7 deletions
diff --git a/themes/engines/phptemplate/phptemplate.engine b/themes/engines/phptemplate/phptemplate.engine
index b58d9dcb9..37a4b315d 100644
--- a/themes/engines/phptemplate/phptemplate.engine
+++ b/themes/engines/phptemplate/phptemplate.engine
@@ -331,13 +331,12 @@ function _phptemplate_default($hook, $variables, $file = NULL) {
}
if ($file) {
- unset($variables['file']); // Make sure we don't override $file
- extract($variables); // Extract the vars to local namespace
- ob_start(); // Start output buffering
- 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
+ extract($variables, EXTR_SKIP); // Extract the vars to local namespace
+ ob_start(); // Start output buffering
+ 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
}
}