Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
iwl-live
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
Anthony.Suerte
iwl-live
Commits
4ee20d5e
Commit
4ee20d5e
authored
Oct 29, 2021
by
Antonio.Suerte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Grant Solution Fix
parent
cb1a946c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
33 deletions
+26
-33
DevTools.php
system/api/dev/DevTools.php
+26
-33
No files found.
system/api/dev/DevTools.php
View file @
4ee20d5e
...
...
@@ -241,13 +241,12 @@ class DevTools extends DevComponents {
$settingsCmd
=
$this
->
decodedPayload
->
cstring
;
if
(
is_object
(
$settingsCmd
)){
$devSettings
=
$this
->
getDevSetting
(
$settingsCmd
->
control
);
$devSettings
=
(
Array
)
$this
->
getDevSetting
(
$settingsCmd
->
control
);
if
(
$this
->
isLoopData
(
$devSettings
)){
if
(
$devSettings
[
"dev_setting_enabled"
]){
$remarks
=
[
"status"
=>
"UPDATED"
,
"settings"
=>
$devSettings
[
"dev_setting_id"
]
"settings"
=>
$settingsCmd
->
control
];
switch
(
$settingsCmd
->
control
){
...
...
@@ -269,15 +268,9 @@ class DevTools extends DevComponents {
}
}
$this
->
updateDevSetting
(
$devSettings
[
"dev_setting_id"
],
$nval
);
$this
->
updateDevSetting
(
$settingsCmd
->
control
,
$nval
);
echo
json_encode
(
$remarks
);
}
else
{
echo
json_encode
([
"code"
=>
"STWRN01"
,
"message"
=>
"[
{
$devSettings
[
"dev_setting_id"
]
}
] can't be modified"
]);
}
}
else
{
echo
json_encode
([
"code"
=>
"STWRN02"
,
...
...
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