mirror of
https://github.com/opnsense/core.git
synced 2026-05-28 04:34:51 -04:00
system: minor style update in new menu code
This commit is contained in:
parent
a27a2c7901
commit
5452c5bc90
1 changed files with 5 additions and 6 deletions
|
|
@ -44,7 +44,7 @@ class MenuItem
|
|||
* this items id (xml tag name)
|
||||
* @var item|string
|
||||
*/
|
||||
private $id = "";
|
||||
private $id = '';
|
||||
|
||||
/**
|
||||
* visible name, default same as id
|
||||
|
|
@ -62,20 +62,19 @@ class MenuItem
|
|||
* layout information, icon
|
||||
* @var string
|
||||
*/
|
||||
private $CssClass = "";
|
||||
private $CssClass = '';
|
||||
|
||||
/**
|
||||
* Classes to add to the link
|
||||
* @var string
|
||||
*/
|
||||
private $LinkClass = "";
|
||||
|
||||
private $LinkClass = '';
|
||||
|
||||
/**
|
||||
* link to url location
|
||||
* @var string
|
||||
*/
|
||||
private $Url = "";
|
||||
private $Url = '';
|
||||
|
||||
/**
|
||||
* link to external page
|
||||
|
|
@ -456,7 +455,7 @@ class MenuItem
|
|||
foreach ($this->children as $nodeId => &$node) {
|
||||
if ($node->isVisible()) {
|
||||
$node->toggleSelected($url);
|
||||
if ($node->getUrl() != "") {
|
||||
if ($node->getUrl() != '') {
|
||||
// hash part isn't available on server end
|
||||
$menuItemUrl = explode("#", $node->getUrl())[0];
|
||||
$match = str_replace([".", "*","?", "@"], ["\.", ".*","\?", "\@"], $menuItemUrl);
|
||||
|
|
|
|||
Loading…
Reference in a new issue