- Bug fix: make GetMenuIndexByTitle work !

SVN:trunk[491]
This commit is contained in:
Denis Flaven
2010-06-28 13:06:50 +00:00
parent 06ead1f543
commit 2ac4d13517

View File

@@ -185,7 +185,7 @@ class ApplicationMenu
$index = -1;
foreach(self::$aMenusIndex as $aMenu)
{
if ($aMenu['node']->GetTitle() == $sTitle)
if ($aMenu['node']->GetRawTitle() == $sTitle)
{
$id = $aMenu['node']->GetIndex();
break;
@@ -258,6 +258,11 @@ abstract class MenuNode
$this->index = ApplicationMenu::InsertMenu($this, $iParentIndex, $fRank);
}
public function GetRawTitle()
{
return $this->sTitle;
}
public function GetTitle()
{
return Dict::S($this->sTitle);