mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 02:54:38 +00:00
src: minor style adjustments
This commit is contained in:
parent
ed7e3c3e17
commit
acc9db9efb
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Copyright (C) 2015 Deciso B.V.
|
||||
*
|
||||
@ -26,6 +27,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
namespace OPNsense\Base\Menu;
|
||||
|
||||
/**
|
||||
@ -284,7 +286,10 @@ class MenuItem
|
||||
foreach ($this->children as $nodeId => $node) {
|
||||
$node->toggleSelected($url);
|
||||
if ($node->getUrl() != "") {
|
||||
if (strlen($url) >= strlen($node->getUrl()) && $node->getUrl() == substr($url, strlen($url)-strlen($node->getUrl()))) {
|
||||
if (
|
||||
strlen($url) >= strlen($node->getUrl()) &&
|
||||
$node->getUrl() == substr($url, strlen($url)-strlen($node->getUrl()))
|
||||
) {
|
||||
$node->select();
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Copyright (C) 2015 Deciso B.V.
|
||||
*
|
||||
@ -26,6 +27,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
namespace OPNsense\Core;
|
||||
|
||||
/**
|
||||
@ -133,10 +135,8 @@ class ACL
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->initLegacy();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -3,7 +3,6 @@
|
||||
error_reporting(E_ALL);
|
||||
|
||||
try {
|
||||
|
||||
/**
|
||||
* Read the configuration
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user