#467640 by casey: Consolidate overly verbose code in theme_render_template().

merge-requests/26/head
Angie Byron 2009-11-20 04:29:42 +00:00
parent 76806edde6
commit 457a109406
1 changed files with 1 additions and 3 deletions

View File

@ -1239,9 +1239,7 @@ function theme_render_template($template_file, $variables) {
extract($variables, EXTR_SKIP); // Extract the variables to a local namespace extract($variables, EXTR_SKIP); // Extract the variables to a local namespace
ob_start(); // Start output buffering ob_start(); // Start output buffering
include DRUPAL_ROOT . '/' . $template_file; // Include the template file include DRUPAL_ROOT . '/' . $template_file; // Include the template file
$contents = ob_get_contents(); // Get the contents of the buffer return ob_get_clean(); // End buffering and return its contents
ob_end_clean(); // End buffering and discard
return $contents; // Return the contents
} }
/** /**