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
276f7bdb
Commit
276f7bdb
authored
Dec 11, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: whitespace and style sweesrc: whitespace and style sweepp
parent
8842b092
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
rc.ipfw.flush_all
src/etc/rc.ipfw.flush_all
+0
-1
Routing.php
src/opnsense/mvc/app/library/OPNsense/Core/Routing.php
+2
-2
BaseModel.php
src/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php
+1
-1
No files found.
src/etc/rc.ipfw.flush_all
View file @
276f7bdb
...
...
@@ -28,4 +28,3 @@
/sbin/ipfw
-f
flush
/sbin/ipfw
-f
pipe flush
/sbin/ipfw
-f
queue flush
src/opnsense/mvc/app/library/OPNsense/Core/Routing.php
View file @
276f7bdb
...
...
@@ -73,7 +73,7 @@ class Routing
$this
->
router
->
add
(
'/'
,
array
(
"controller"
=>
'index'
,
"action"
=>
'index'
));
$this
->
type
=
$type
;
switch
(
$this
->
type
){
switch
(
$this
->
type
)
{
case
"ui"
:
$this
->
router
->
setDefaultNamespace
(
'OPNsense\Core'
);
break
;
...
...
@@ -152,7 +152,7 @@ class Routing
foreach
(
$module_configs
as
$module_config
)
{
foreach
(
glob
(
$module_config
[
'path'
]
.
"/*.php"
)
as
$filename
)
{
// extract controller name and bind static in routing table
$controller
=
strtolower
(
str_replace
(
'Controller.php'
,
''
,
basename
(
$filename
)));
$controller
=
strtolower
(
str_replace
(
'Controller.php'
,
''
,
basename
(
$filename
)));
$this
->
router
->
add
(
"/
{
$module_name
}
/
{
$controller
}
/:action/"
,
array
(
"namespace"
=>
$module_config
[
'namespace'
],
"controller"
=>
$controller
,
...
...
src/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php
View file @
276f7bdb
...
...
@@ -128,7 +128,7 @@ abstract class BaseModel
// class found, but of wrong type. raise an exception.
throw
new
ModelException
(
"class "
.
$field_rfcls
->
name
.
" of wrong type in model definition"
);
}
self
::
$internalCacheReflectionClasses
[
$classname
]
=
$field_rfcls
;
self
::
$internalCacheReflectionClasses
[
$classname
]
=
$field_rfcls
;
}
return
self
::
$internalCacheReflectionClasses
[
$classname
];
}
...
...
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