summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2008-01-10 20:16:50 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2008-01-10 20:16:50 +0000
commit7ecd63ed9f977045a890f19a6e08d5e9f9dca7d4 (patch)
treec39d2d4b8119c9259c73cfc72b69274bbc41ce11 /includes
parentf02c73729672257681dec2cdb19c265e61788788 (diff)
downloadbrdo-7ecd63ed9f977045a890f19a6e08d5e9f9dca7d4.tar.gz
brdo-7ecd63ed9f977045a890f19a6e08d5e9f9dca7d4.tar.bz2
#208262 by jvandyk: better name for variable signing a menu rebuild requirement
Diffstat (limited to 'includes')
-rw-r--r--includes/menu.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 8b4636baf..1fd93ccdd 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -336,7 +336,7 @@ function menu_execute_active_handler($path = NULL) {
if (_menu_site_is_offline()) {
return MENU_SITE_OFFLINE;
}
- if (variable_get('menu_rebuild_needs_to_called', FALSE)) {
+ if (variable_get('menu_rebuild_needed', FALSE)) {
menu_rebuild();
}
if ($router_item = menu_get_item($path)) {
@@ -1569,14 +1569,14 @@ function menu_cache_clear_all() {
* is different and leaves stale data in the menu tables.
*/
function menu_rebuild() {
- variable_del('menu_rebuild_needs_to_called');
+ variable_del('menu_rebuild_needed');
menu_cache_clear_all();
$menu = menu_router_build(TRUE);
_menu_navigation_links_rebuild($menu);
// Clear the page and block caches.
_menu_clear_page_cache();
if (defined('MAINTENANCE_MODE')) {
- variable_set('menu_rebuild_needs_to_called', TRUE);
+ variable_set('menu_rebuild_needed', TRUE);
}
}