diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-11-07 14:02:31 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-11-07 14:02:31 +0000 |
commit | 4a1059fa1b0fae3f0d996a33613cebf40097d3f9 (patch) | |
tree | db145bfe1675e103eeb539d84bcfd83085515829 | |
parent | a8ec4e1d505c705ed891212cbf9149c71e4e0a31 (diff) | |
download | brdo-4a1059fa1b0fae3f0d996a33613cebf40097d3f9.tar.gz brdo-4a1059fa1b0fae3f0d996a33613cebf40097d3f9.tar.bz2 |
- Patch #620692 by Crell: remove drupal_render_children() from drupal_render() by inlining it.
-rw-r--r-- | includes/common.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/includes/common.inc b/includes/common.inc index 7f165dc49..75b369954 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -4963,10 +4963,13 @@ function drupal_render(&$elements) { if (isset($elements['#theme'])) { $elements['#children'] = theme($elements['#theme'], $elements); } - // If #theme was not set and the element has children, render them now - // using drupal_render_children(). + // If #theme was not set and the element has children, render them now. + // This is the same process as drupal_render_children() but is inlined + // for speed. if ($elements['#children'] == '') { - $elements['#children'] = drupal_render_children($elements, $children); + foreach ($children as $key) { + $elements['#children'] .= drupal_render($elements[$key]); + } } // Let the theme functions in #theme_wrappers add markup around the rendered |