1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 21:32:09 +02:00

Checking of remote file-types during import and other cleanup.

This commit is contained in:
Cameron
2021-12-17 11:31:37 -08:00
parent d8ce385929
commit 90108eab3c
6 changed files with 34 additions and 9 deletions

View File

@@ -27,7 +27,7 @@ if(isset($_POST['reset']))
{
$sql->select("menus","*", "menu_location='".$mc."' ORDER BY menu_order");
$count = 1;
$sql2 = new db;
$sql2 = e107::getDb('sql2');
while(list($menu_id, $menu_name, $menu_location, $menu_order) = $sql->fetch())
{
$sql2 ->update("menus", "menu_order='$count' WHERE menu_id='$menu_id' ");
@@ -48,7 +48,7 @@ $text = "The Menu-Manager allows you to place and arrange your menus within your
If you find the menus are not updating correctly, clicking the refresh button below may help.
[html]
<form method='post' id='menurefresh' action='".$_SERVER['PHP_SELF']."'>
<form method='post' id='menurefresh' action='".e_SELF."'>
<div>
".$frm->admin_button('reset','Refresh','cancel')."</div>
</form>
@@ -58,4 +58,4 @@ If you find the menus are not updating correctly, clicking the refresh button be
";
$text = $tp->toHTML($text, true);
$ns->tablerender("Menu Manager Help", $text);
e107::getRender()->tablerender("Menu Manager Help", $text);