diff options
author | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-04-13 15:02:35 +0000 |
---|---|---|
committer | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-04-13 15:02:35 +0000 |
commit | fc59697d5d18c08d7fff652fcb5dcd83703fc1ec (patch) | |
tree | 511fe4f8c4261457fda6099f30de0215e0fbef61 /includes | |
parent | 6b80d55a80a742b03929b68ffc689580dc5d5626 (diff) | |
download | brdo-fc59697d5d18c08d7fff652fcb5dcd83703fc1ec.tar.gz brdo-fc59697d5d18c08d7fff652fcb5dcd83703fc1ec.tar.bz2 |
#58590, Very tiny performance enhancement in menu_set_active_item(), patch by timcn
Diffstat (limited to 'includes')
-rw-r--r-- | includes/menu.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index f52fff486..8276dfd38 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -430,9 +430,9 @@ function menu_get_active_item() { */ function menu_set_active_item($path = NULL) { static $stored_mid; - $menu = menu_get_menu(); if (!isset($stored_mid) || isset($path)) { + $menu = menu_get_menu(); if (!isset($path)) { $path = $_GET['q']; } |