mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-26 12:56:35 +00:00
Adicionada a lingua pt aos menus
This commit is contained in:
@@ -179,7 +179,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
}
|
||||
echo "<td width='70%' align='right'>\n";
|
||||
if (permission_exists('menu_restore')) {
|
||||
echo " <input type='button' class='btn' value='Restore Default' onclick=\"document.location.href='menu_restore_default.php?menu_uuid=$menu_uuid&menu_uuid=$menu_uuid';\" />";
|
||||
echo " <input type='button' class='btn' value='Restore Default' onclick=\"document.location.href='menu_restore_default.php?menu_uuid=$menu_uuid&menu_language=$menu_language';\" />";
|
||||
}
|
||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='menu.php'\" value='Back'></td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
@@ -36,12 +36,14 @@ else {
|
||||
|
||||
//get the http value and set as a php variable
|
||||
$menu_uuid = check_str($_REQUEST["menu_uuid"]);
|
||||
$menu_language = check_str($_REQUEST["menu_language"]);
|
||||
|
||||
//menu restore default
|
||||
require_once "includes/classes/menu.php";
|
||||
$menu = new menu;
|
||||
$menu->db = $db;
|
||||
$menu->menu_uuid = $menu_uuid;
|
||||
$menu->menu_language = $menu_language;
|
||||
$menu->delete();
|
||||
$menu->restore();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user