-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve JInstallerAdapterComponent::_buildAdminMenus
Changes: * Type hinting for $table * There can be more than one root menu items for a single component if the installation previously failed without rollback (e.g. timeout error) * The extension ID must always be fetched from the #__extensions table, not the old menu items for the same reasons as above * Just do not create the menu if $menuElement not exist (it was a TODO item for as long as I remember developing for Joomla!) * Unnecessary code duplication creating the root menu item * Refactored the code, moving the actual menu item creation in the _createAdminMenuItem method * If a submenu already existed with the same parent item the installation would fail. Now we try removing it first, just like we do for the root menu item.
- Loading branch information
Nicholas K. Dionysopoulos
committed
Dec 23, 2014
1 parent
6c2f0cc
commit 2841b1b
Showing
1 changed file
with
115 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters