Commit 457a1094 authored by webchick's avatar webchick
Browse files

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

parent 76806edd
......@@ -1239,9 +1239,7 @@ function theme_render_template($template_file, $variables) {
extract($variables, EXTR_SKIP); // Extract the variables to a local namespace
ob_start(); // Start output buffering
include DRUPAL_ROOT . '/' . $template_file; // Include the template file
$contents = ob_get_contents(); // Get the contents of the buffer
ob_end_clean(); // End buffering and discard
return $contents; // Return the contents
return ob_get_clean(); // End buffering and return its contents
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment