diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-06-07 07:40:34 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-06-07 07:40:34 +0000 |
commit | b0ba5ef4f5f3fe39a12c85ca8111071d88daff43 (patch) | |
tree | 8491357000eb24f7f1ab788bfe1ec8e44eafd062 | |
parent | ff760f005d1943cec0630e7cae06ec2f0411cdfe (diff) | |
download | brdo-b0ba5ef4f5f3fe39a12c85ca8111071d88daff43.tar.gz brdo-b0ba5ef4f5f3fe39a12c85ca8111071d88daff43.tar.bz2 |
- Patch #67434 by fgm: small performance improvement. Unset variables as soon as possible.
-rw-r--r-- | includes/menu.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index ea0554153..740a90191 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -1069,10 +1069,10 @@ function _menu_build() { $_menu['callbacks'][$item['path']] = array('callback' => $item['callback']); if (isset($item['callback arguments'])) { $_menu['callbacks'][$item['path']]['callback arguments'] = $item['callback arguments']; + unset($item['callback arguments']); } + unset($item['callback']); } - unset($item['callback']); - unset($item['callback arguments']); $_menu['items'][$mid] = $item; $_menu['path index'][$item['path']] = $mid; @@ -1220,10 +1220,10 @@ function _menu_append_contextual_items() { $_menu['callbacks'][$item['path']] = array('callback' => $item['callback']); if (isset($item['callback arguments'])) { $_menu['callbacks'][$item['path']]['callback arguments'] = $item['callback arguments']; + unset($item['callback arguments']); } + unset($item['callback']); } - unset($item['callback']); - unset($item['callback arguments']); if (!isset($_menu['path index'][$item['path']])) { if (!isset($item['path'])) { $item['path'] = ''; |