Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Update libraries/joomla/application/menu.php #700

Merged
merged 4 commits into from Feb 6, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 7 additions & 2 deletions libraries/joomla/application/menu.php
Expand Up @@ -121,10 +121,15 @@ public static function getInstance($client, $options = array())
$path = $info->path . '/includes/menu.php';
if (file_exists($path))
{
include_once $path;

// Create a JPathway object
$classname = 'JMenu' . ucfirst($client);

// Only load if not already loaded.
if (class_exists($classname) == false)
{
include $path;
}

$instance = new $classname($options);
}
else
Expand Down