Diff of /mambo/branches/4.6/administrator/components/com_menus/admin.menus.php
Parent Directory
|
Revision Log
|
Patch
| revision 313, Tue Feb 21 23:20:16 2006 UTC | revision 314, Wed Feb 22 12:57:20 2006 UTC | |
|---|---|---|
| # | Line 68 | Line 68 |
| 68 | break; | break; |
| 69 | ||
| 70 | case 'remove': | case 'remove': |
| 71 | if ($msg = TrashMenusection( $cid )) { | $msg = ''; |
| 72 | foreach($cid as $_id){ | |
| 73 | $_cid = array(); | |
| 74 | $_cid[] = $_id; | |
| 75 | addDescendants($_id, $_cid); | |
| 76 | $msg .= TrashMenuSection( $_cid ); | |
| 77 | } | |
| 78 | if ($msg) { | |
| 79 | mosRedirect( 'index2.php?option=com_menus&menutype='. $menutype .'&mosmsg= '.$msg ); | mosRedirect( 'index2.php?option=com_menus&menutype='. $menutype .'&mosmsg= '.$msg ); |
| 80 | } else { | } else { |
| 81 | mosRedirect( 'index2.php?option=com_menus&menutype='. $menutype ); | mosRedirect( 'index2.php?option=com_menus&menutype='. $menutype ); |
| # | Line 709 | Line 716 |
| 716 | } | } |
| 717 | ||
| 718 | function saveOrder( &$cid, $menutype ) { | function saveOrder( &$cid, $menutype ) { |
| 719 | global $database; | |
| 720 | $order = mosGetParam( $_POST, 'order', array(0) ); | $order = mosGetParam( $_POST, 'order', array(0) ); |
| 721 | $row = new mosMenu( $database ); | $row = new mosMenu( $database ); |
| 722 | $parents = array(); | $parents = array(); |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

