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
7cebaf58
Commit
7cebaf58
authored
Jul 13, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mvc: latest style nitpick additions
parent
d2c4efe0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
services_api.php
src/opnsense/mvc/app/config/services_api.php
+1
-1
Config.php
src/opnsense/mvc/app/library/OPNsense/Core/Config.php
+2
-2
CPClient.php
...nsense/mvc/app/models/OPNsense/CaptivePortal/CPClient.php
+1
-2
IDS.php
src/opnsense/mvc/app/models/OPNsense/IDS/IDS.php
+1
-1
No files found.
src/opnsense/mvc/app/config/services_api.php
View file @
7cebaf58
...
...
@@ -73,7 +73,7 @@ $di->set('config', $config);
/**
* Setup router
*/
$di
->
set
(
'router'
,
function
()
{
$di
->
set
(
'router'
,
function
()
{
$router
=
new
\Phalcon\Mvc\Router
(
false
);
...
...
src/opnsense/mvc/app/library/OPNsense/Core/Config.php
View file @
7cebaf58
...
...
@@ -169,7 +169,7 @@ class Config extends Singleton
$node
=
$this
->
simplexml
;
// invalidate object on warnings/errors (prevent save from happening)
set_error_handler
(
function
()
{
function
()
{
$this
->
statusIsValid
=
false
;
}
);
...
...
@@ -293,7 +293,7 @@ class Config extends Singleton
}
set_error_handler
(
function
()
{
function
()
{
// reset simplexml pointer on parse error.
$this
->
simplexml
=
null
;
}
...
...
src/opnsense/mvc/app/models/OPNsense/CaptivePortal/CPClient.php
View file @
7cebaf58
...
...
@@ -730,8 +730,7 @@ class CPClient
}
}
unset
(
$acc_list
);
unset
(
$acc_list
);
}
/**
...
...
src/opnsense/mvc/app/models/OPNsense/IDS/IDS.php
View file @
7cebaf58
...
...
@@ -95,7 +95,7 @@ class IDS extends BaseModel
foreach
(
$this
->
rules
->
rule
->
__items
as
$NodeKey
=>
$NodeValue
)
{
if
((
string
)
$NodeValue
->
sid
==
$sid
)
{
$this
->
rules
->
rule
->
Del
(
$NodeKey
);
unset
(
$this
->
sid_list
[
$sid
]);
unset
(
$this
->
sid_list
[
$sid
]);
break
;
}
}
...
...
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