From 457a109406d80c2af636ec22bb2d858429c4a871 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Fri, 20 Nov 2009 04:29:42 +0000 Subject: #467640 by casey: Consolidate overly verbose code in theme_render_template(). --- includes/theme.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/theme.inc b/includes/theme.inc index 805646f5a..e243d1f11 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 } /** -- cgit v1.2.3