mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Fix for breadcrumb title with menu aliases.
This commit is contained in:
parent
cf7c20e168
commit
e1dda1570c
@ -1879,14 +1879,43 @@ class e_admin_controller
|
||||
$_dispatcher = $this->getDispatcher();
|
||||
$data = $_dispatcher->getPageTitles();
|
||||
$search = $this->getMode().'/'.$this->getAction();
|
||||
if(isset($data[$search])) $res['caption'] = $data[$search];
|
||||
|
||||
if(isset($data[$search]))
|
||||
{
|
||||
$res['caption'] = $data[$search];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
$data = $_dispatcher->getMenuData();
|
||||
if(isset($data[$search])) $res = $data[$search];
|
||||
else return $this;
|
||||
|
||||
if(isset($data[$search]))
|
||||
{
|
||||
$res = $data[$search];
|
||||
}
|
||||
else
|
||||
{
|
||||
// check for an alias match.
|
||||
$d = $_dispatcher->getMenuAliases();
|
||||
if(isset($d[$search]))
|
||||
{
|
||||
$search = $d[$search];
|
||||
$res = $data[$search];
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
// var_dump($d);
|
||||
// var_dump("Couldnt find: ".$search);
|
||||
|
||||
}
|
||||
}
|
||||
$title = $res['caption'];
|
||||
|
||||
|
||||
}
|
||||
|
||||
// echo "<h3>".__METHOD__." - ".$title."</h3>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user