Commit fc59697d authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#58590, Very tiny performance enhancement in menu_set_active_item(), patch by timcn

parent 6b80d55a
......@@ -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'];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment