Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
da8d1cdc
Commit
da8d1cdc
authored
Nov 29, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
menu: sort by description, closes #362
parent
85c8e361
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
ControllerBase.php
...ense/mvc/app/controllers/OPNsense/Base/ControllerBase.php
+5
-5
fbegin.inc
src/www/fbegin.inc
+5
-5
No files found.
src/opnsense/mvc/app/controllers/OPNsense/Base/ControllerBase.php
View file @
da8d1cdc
...
@@ -206,16 +206,16 @@ class ControllerBase extends ControllerRoot
...
@@ -206,16 +206,16 @@ class ControllerBase extends ControllerRoot
$ifarr
=
array
();
$ifarr
=
array
();
foreach
(
$cnf
->
object
()
->
interfaces
->
children
()
as
$key
=>
$node
)
{
foreach
(
$cnf
->
object
()
->
interfaces
->
children
()
as
$key
=>
$node
)
{
$ifarr
[
$key
]
=
$node
;
$ifarr
[
$key
]
=
$node
->
descr
?
$node
->
descr
->
__toString
()
:
strtoupper
(
$key
)
;
}
}
k
sort
(
$ifarr
);
natcase
sort
(
$ifarr
);
$ordid
=
0
;
$ordid
=
0
;
foreach
(
$ifarr
as
$key
=>
$
node
)
{
foreach
(
$ifarr
as
$key
=>
$
descr
)
{
$menu
->
appendItem
(
'Interfaces'
,
$key
,
array
(
$menu
->
appendItem
(
'Interfaces'
,
$key
,
array
(
'url'
=>
'/interfaces.php?if='
.
$key
,
'url'
=>
'/interfaces.php?if='
.
$key
,
'order'
=>
(
$ordid
++
),
'visiblename'
=>
'['
.
$descr
.
']'
,
'visiblename'
=>
$node
->
descr
?
$node
->
descr
:
strtoupper
(
$key
),
'cssclass'
=>
'fa fa-sitemap'
,
'cssclass'
=>
'fa fa-sitemap'
,
'order'
=>
$ordid
++
,
));
));
}
}
unset
(
$ifarr
);
unset
(
$ifarr
);
...
...
src/www/fbegin.inc
View file @
da8d1cdc
...
@@ -73,16 +73,16 @@ $menu = new OPNsense\Base\Menu\MenuSystem();
...
@@ -73,16 +73,16 @@ $menu = new OPNsense\Base\Menu\MenuSystem();
$cnf
=
OPNsense\Core\Config
::
getInstance
();
$cnf
=
OPNsense\Core\Config
::
getInstance
();
$ifarr
=
array
();
$ifarr
=
array
();
foreach
(
$cnf
->
object
()
->
interfaces
->
children
()
as
$key
=>
$node
)
{
foreach
(
$cnf
->
object
()
->
interfaces
->
children
()
as
$key
=>
$node
)
{
$ifarr
[
$key
]
=
$node
;
$ifarr
[
$key
]
=
$node
->
descr
?
$node
->
descr
->
__toString
()
:
strtoupper
(
$key
)
;
}
}
k
sort
(
$ifarr
);
natcase
sort
(
$ifarr
);
$ordid
=
0
;
$ordid
=
0
;
foreach
(
$ifarr
as
$key
=>
$
node
)
{
foreach
(
$ifarr
as
$key
=>
$
descr
)
{
$menu
->
appendItem
(
'Interfaces'
,
$key
,
array
(
$menu
->
appendItem
(
'Interfaces'
,
$key
,
array
(
'url'
=>
'/interfaces.php?if='
.
$key
,
'url'
=>
'/interfaces.php?if='
.
$key
,
'order'
=>
(
$ordid
++
),
'visiblename'
=>
'['
.
$descr
.
']'
,
'visiblename'
=>
$node
->
descr
?
$node
->
descr
:
strtoupper
(
$key
),
'cssclass'
=>
'fa fa-sitemap'
,
'cssclass'
=>
'fa fa-sitemap'
,
'order'
=>
$ordid
++
,
));
));
}
}
unset
(
$ifarr
);
unset
(
$ifarr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment