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 2 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);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are tabs at end of line

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are tabs at end of line

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