Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions administrator/components/com_menus/Helper/MenusHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,8 @@ public static function getPresets()
// Important: 'null' will cause infinite recursion.
static::$presets = array();

static::addPreset('joomla', 'JLIB_MENUS_PRESET_JOOMLA', JPATH_ADMINISTRATOR . '/components/com_menus/presets/joomla.xml');
static::addPreset('modern', 'JLIB_MENUS_PRESET_MODERN', JPATH_ADMINISTRATOR . '/components/com_menus/presets/modern.xml');
static::addPreset('default', 'JLIB_MENUS_PRESET_DEFAULT', JPATH_ADMINISTRATOR . '/components/com_menus/presets/default.xml');
static::addPreset('alternate', 'JLIB_MENUS_PRESET_ALTERNATE', JPATH_ADMINISTRATOR . '/components/com_menus/presets/alternate.xml');
static::addPreset('system', 'JLIB_MENUS_PRESET_SYSTEM', JPATH_ADMINISTRATOR . '/components/com_menus/presets/system.xml');
static::addPreset('content', 'JLIB_MENUS_PRESET_CONTENT', JPATH_ADMINISTRATOR . '/components/com_menus/presets/content.xml');
static::addPreset('help', 'JLIB_MENUS_PRESET_HELP', JPATH_ADMINISTRATOR . '/components/com_menus/presets/help.xml');
Expand Down Expand Up @@ -668,9 +668,9 @@ public static function loadPreset($name, $fallback = true, $parent = null)
{
static::loadXml($xml, $parent);
}
elseif ($fallback && isset($presets['joomla']))
elseif ($fallback && isset($presets['default']))
{
if (($xml = simplexml_load_file($presets['joomla']->path, null, LIBXML_NOCDATA)) && $xml instanceof \SimpleXMLElement)
if (($xml = simplexml_load_file($presets['default']->path, null, LIBXML_NOCDATA)) && $xml instanceof \SimpleXMLElement)
{
static::loadXml($xml, $parent);
}
Expand Down
4 changes: 2 additions & 2 deletions administrator/language/en-GB/en-GB.lib_joomla.ini
Original file line number Diff line number Diff line change
Expand Up @@ -680,12 +680,12 @@ JLIB_MEDIA_ERROR_WARNINVALID_MIME="Invalid mime type detected."
JLIB_MEDIA_ERROR_WARNINVALID_MIMETYPE="Illegal mime type detected: %s"
JLIB_MEDIA_ERROR_WARNNOTADMIN="Uploaded file is not an image file and you do not have permission."

JLIB_MENUS_PRESET_ALTERNATE="Preset - Alternative Main Menu"
JLIB_MENUS_PRESET_COMPONENTS="Preset - Components Dashboard"
JLIB_MENUS_PRESET_CONTENT="Preset - Content Dashboard"
JLIB_MENUS_PRESET_DEFAULT="Preset - Joomla Main Menu"
JLIB_MENUS_PRESET_HELP="Preset - Help Dashboard"
JLIB_MENUS_PRESET_JOOMLA="Preset - Joomla"
JLIB_MENUS_PRESET_MENUS="Preset - Menus Dashboard"
JLIB_MENUS_PRESET_MODERN="Preset - Modern"
JLIB_MENUS_PRESET_SYSTEM="Preset - System Dashboard"
JLIB_MENUS_PRESET_USERS="Preset - Users Dashboard"

Expand Down
4 changes: 2 additions & 2 deletions administrator/modules/mod_menu/Menu/CssMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function load($params, $enabled)

if ($menutype === '*')
{
$name = $this->params->get('preset', 'joomla');
$name = $this->params->get('preset', 'default');
$this->root = MenusHelper::loadPreset($name);
}
else
Expand All @@ -132,7 +132,7 @@ public function load($params, $enabled)
$heading = new MenuItem(['title' => 'MOD_MENU_RECOVERY_MENU_ROOT', 'type' => 'heading']);
$this->root->addChild($heading);

MenusHelper::loadPreset('joomla', true, $heading);
MenusHelper::loadPreset('defaulta', true, $heading);

$this->preprocess($this->root);

Expand Down