src: minor style adjustments

This commit is contained in:
Franco Fichtner 2015-02-21 10:54:47 +01:00
parent ed7e3c3e17
commit acc9db9efb
3 changed files with 8 additions and 4 deletions

View File

@ -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();
}
}

View File

@ -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();
}
}

View File

@ -3,7 +3,6 @@
error_reporting(E_ALL);
try {
/**
* Read the configuration
*/