Diff of /mambo/branches/4.6/includes/core.classes.php
Parent Directory
|
Revision Log
|
Patch
| revision 1511, Sat Dec 29 04:44:15 2007 UTC | revision 1512, Sat Dec 29 09:59:56 2007 UTC | |
|---|---|---|
| # | Line 485 | Line 485 |
| 485 | else { | else { |
| 486 | $menuhandler =& mosMenuHandler::getInstance(); | $menuhandler =& mosMenuHandler::getInstance(); |
| 487 | $menus =& $menuhandler->getByParentOrder($this->Itemid, 'mainmenu'); | $menus =& $menuhandler->getByParentOrder($this->Itemid, 'mainmenu'); |
| 488 | if (count($menus)) { | |
| 489 | $this->Itemid = $menus[0]->id; | $this->Itemid = $menus[0]->id; |
| 490 | $_REQUEST['Itemid'] = $this->Itemid; | $_REQUEST['Itemid'] = $this->Itemid; |
| 491 | $link = $menus[0]->link; | $link = $menus[0]->link; |
| # | Line 496 | Line 497 |
| 497 | if (isset($temp['option'])) $option = $temp['option']; | if (isset($temp['option'])) $option = $temp['option']; |
| 498 | else return ''; | else return ''; |
| 499 | } | } |
| 500 | } | |
| 501 | /** patch to lessen the impact on templates */ | /** patch to lessen the impact on templates */ |
| 502 | if ($option == 'search') $option = 'com_search'; | if ($option == 'search') $option = 'com_search'; |
| 503 | // checking if we can find the Itemid thru the component | // checking if we can find the Itemid thru the component |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

