summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--includes/theme.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 805646f5a08b..e243d1f119f0 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -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
}
/**