diff --git a/e107_languages/English/admin/help/menus.php b/e107_languages/English/admin/help/menus.php
index b18852684..de65e8899 100644
--- a/e107_languages/English/admin/help/menus.php
+++ b/e107_languages/English/admin/help/menus.php
@@ -19,22 +19,31 @@ if (!getperms("2")) {
header("location:".e_BASE."index.php");
exit;
}
-global $sql;
-if(isset($_POST['reset'])){
- for($mc=1;$mc<=5;$mc++){
+
+$sql = e107::getDb();
+
+if(isset($_POST['reset']))
+{
+ for($mc=1;$mc<=5;$mc++)
+ {
$sql -> db_Select("menus","*", "menu_location='".$mc."' ORDER BY menu_order");
$count = 1;
$sql2 = new db;
- while(list($menu_id, $menu_name, $menu_location, $menu_order) = $sql-> db_Fetch()){
+ while(list($menu_id, $menu_name, $menu_location, $menu_order) = $sql-> db_Fetch())
+ {
$sql2 -> db_Update("menus", "menu_order='$count' WHERE menu_id='$menu_id' ");
$count++;
}
$text = "Menus reset in database
";
}
-}else{
+}
+else
+{
unset($text);
}
+$frm = e107::getForm();
+
$text .= "
You can arrange where and in which order your menu items are from here.
Use the dropdown menu to move the menus up and down until you are satisfied with their positioning.
@@ -43,7 +52,8 @@ Use the dropdown menu to move the menus up and down until you are satisfied with
If you find the menus are not updating properly click on the refresh button.