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:
Mark Crane
2013-06-11 19:04:40 +00:00
parent 16bd1685fc
commit 2e7eecce2c

View File

@@ -33,11 +33,8 @@
//set the variable
$db = $this->db;
//remove the menu languages
$sql = "delete from v_menu_languages where menu_item_uuid ";
$sql .= "in (select distinct(menu_item_uuid) from v_menu_items ";
$sql .= "where (menu_item_protected <> 'true' ";
$sql .= "or menu_item_protected is null) ";
$sql .= ")";
$sql = "delete from v_menu_languages ";
$sql .= "where menu_uuid = '".$this->menu_uuid."' ";
$db->exec(check_sql($sql));
//remove the old menu
$sql = "delete from v_menu_items ";
@@ -142,7 +139,6 @@
$sql .= "'$menu_item_title' ";
$sql .= ")";
$db->exec(check_sql($sql));
unset($sql);
}
}