| 204 |
// block to stop renaming of 'mainmenu' menutype |
// block to stop renaming of 'mainmenu' menutype |
| 205 |
if ( $old_menutype == 'mainmenu' ) { |
if ( $old_menutype == 'mainmenu' ) { |
| 206 |
if ( $menutype <> 'mainmenu' ) { |
if ( $menutype <> 'mainmenu' ) { |
| 207 |
echo "<script> alert('You cannot rename the \'mainmenu\' Menu as this will disrupt the proper operation of Mambo'); window.history.go(-1); </script>\n"; |
echo "<script> alert(".T_('You cannot rename the "mainmenu" Menu as this will disrupt the proper operation of Mambo')."); window.history.go(-1); </script>\n"; |
| 208 |
exit; |
exit; |
| 209 |
} |
} |
| 210 |
} |
} |
| 220 |
$pparser = new mosParameters($menu); |
$pparser = new mosParameters($menu); |
| 221 |
$params = $pparser->getParams(); |
$params = $pparser->getParams(); |
| 222 |
if ( $params->menutype == $menutype ) { |
if ( $params->menutype == $menutype ) { |
| 223 |
echo "<script> alert('A menu already exists with that name - you must enter a unique Menu Name'); window.history.go(-1); </script>\n"; |
echo "<script> alert(".T_('A menu already exists with that name - you must enter a unique Menu Name')."); window.history.go(-1); </script>\n"; |
| 224 |
exit; |
exit; |
| 225 |
} |
} |
| 226 |
} |
} |
| 255 |
exit(); |
exit(); |
| 256 |
} |
} |
| 257 |
|
|
| 258 |
$msg = 'New Menu created [ '. $menutype .' ]'; |
$msg = sprintf(T_('New Menu created [ %s ]'), $menutype); |
| 259 |
break; |
break; |
| 260 |
|
|
| 261 |
default: |
default: |
| 309 |
$database->query(); |
$database->query(); |
| 310 |
} |
} |
| 311 |
|
|
| 312 |
$msg = 'Menu Items & Modules updated'; |
$msg = T_('Menu Items & Modules updated'); |
| 313 |
break; |
break; |
| 314 |
} |
} |
| 315 |
|
|
| 323 |
global $database; |
global $database; |
| 324 |
|
|
| 325 |
if ( $type == 'mainmenu' ) { |
if ( $type == 'mainmenu' ) { |
| 326 |
echo "<script> alert('You cannot delete the \'mainmenu\' menu as it is core menu'); window.history.go(-1); </script>\n"; |
echo "<script> alert(".T_('You cannot delete the "mainmenu" menu as it is a core menu')."); window.history.go(-1); </script>\n"; |
| 327 |
exit(); |
exit(); |
| 328 |
} |
} |
| 329 |
|
|
| 373 |
global $database; |
global $database; |
| 374 |
|
|
| 375 |
if ( $type == 'mainmenu' ) { |
if ( $type == 'mainmenu' ) { |
| 376 |
echo "<script> alert('You cannot delete the \'mainmenu\' menu as it is core menu'); window.history.go(-1); </script>\n"; |
echo "<script> alert(".T_('You cannot delete the "mainmenu" menu as it is a core menu')."); window.history.go(-1); </script>\n"; |
| 377 |
exit(); |
exit(); |
| 378 |
} |
} |
| 379 |
|
|
| 464 |
$pparser = new mosParameters($menu); |
$pparser = new mosParameters($menu); |
| 465 |
$params = $pparser->getParams(); |
$params = $pparser->getParams(); |
| 466 |
if ( $params->menutype == $menu_name ) { |
if ( $params->menutype == $menu_name ) { |
| 467 |
echo "<script> alert('A menu already exists with that name - you must enter a unique Menu Name'); window.history.go(-1); </script>\n"; |
echo "<script> alert(".T_('A menu with that name already exists - you must enter a unique Menu Name')."); window.history.go(-1); </script>\n"; |
| 468 |
exit; |
exit; |
| 469 |
} |
} |
| 470 |
} |
} |
| 524 |
exit(); |
exit(); |
| 525 |
} |
} |
| 526 |
|
|
| 527 |
$msg = 'Copy of Menu `'. $type .'` created, consisting of '. $total .' items'; |
$msg = sprintf(Tn_('Copy of Menu `%s` created, consisting of %d item', 'Copy of Menu `%s` created, consisting of %d items', $total), $type, $total); |
| 528 |
mosRedirect( 'index2.php?option=' . $option, $msg ); |
mosRedirect( 'index2.php?option=' . $option, $msg ); |
| 529 |
} |
} |
| 530 |
|
|