summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-20 04:29:42 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-20 04:29:42 +0000
commit457a109406d80c2af636ec22bb2d858429c4a871 (patch)
tree4a23d59f103aa00425ba1b9afb8585eeb1e9cf72
parent76806edde6c1c8dea37714b6fb8aad0f3e9f01e2 (diff)
downloaddrupal-457a109406d80c2af636ec22bb2d858429c4a871.tar.gz
drupal-457a109406d80c2af636ec22bb2d858429c4a871.zip
#467640 by casey: Consolidate overly verbose code in theme_render_template().
-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
}
/**