Fix the menu titles for additional menus. The titles are provided by v_menu_languages table. Previous approach deleted languages for other menus which were needed for the menu titles to be displayed.
This commit is contained in:
@@ -33,11 +33,8 @@
|
|||||||
//set the variable
|
//set the variable
|
||||||
$db = $this->db;
|
$db = $this->db;
|
||||||
//remove the menu languages
|
//remove the menu languages
|
||||||
$sql = "delete from v_menu_languages where menu_item_uuid ";
|
$sql = "delete from v_menu_languages ";
|
||||||
$sql .= "in (select distinct(menu_item_uuid) from v_menu_items ";
|
$sql .= "where menu_uuid = '".$this->menu_uuid."' ";
|
||||||
$sql .= "where (menu_item_protected <> 'true' ";
|
|
||||||
$sql .= "or menu_item_protected is null) ";
|
|
||||||
$sql .= ")";
|
|
||||||
$db->exec(check_sql($sql));
|
$db->exec(check_sql($sql));
|
||||||
//remove the old menu
|
//remove the old menu
|
||||||
$sql = "delete from v_menu_items ";
|
$sql = "delete from v_menu_items ";
|
||||||
@@ -142,7 +139,6 @@
|
|||||||
$sql .= "'$menu_item_title' ";
|
$sql .= "'$menu_item_title' ";
|
||||||
$sql .= ")";
|
$sql .= ")";
|
||||||
$db->exec(check_sql($sql));
|
$db->exec(check_sql($sql));
|
||||||
|
|
||||||
unset($sql);
|
unset($sql);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user