mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
(menusystem) typo in last
This commit is contained in:
parent
d2bd0d527a
commit
585b643f55
@ -344,8 +344,8 @@ class MenuItem
|
||||
$node->toggleSelected($url);
|
||||
if ($node->getUrl() != "") {
|
||||
// hash part isn't available on server end
|
||||
$url = explode("#", $node->getUrl())[0];
|
||||
$match = str_replace(array(".", "*","?"), array("\.", ".*","\?"), $url);
|
||||
$menuItemUrl = explode("#", $node->getUrl())[0];
|
||||
$match = str_replace(array(".", "*","?"), array("\.", ".*","\?"), $menuItemUrl);
|
||||
if (preg_match("@^{$match}$@", "{$url}")) {
|
||||
$node->select();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user