#467640 by casey: Consolidate overly verbose code in theme_render_template().
parent
76806edde6
commit
457a109406
|
|
@ -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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue