Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
庞 凯升
PbootCMS
Commits
8ba5a6cc
Commit
8ba5a6cc
authored
6 years ago
by
星梦
Browse files
Options
Download
Email Patches
Plain Diff
V1.1.4
parent
cb57a319
3.X
1.X
2.X
dev
main
master
V3.1.4
V3.1.3
V3.1.2
V3.1.1
V3.1.0
V3.0.9
V3.0.8
V3.0.7
V3.0.6
V3.0.5
V3.0.4
V3.0.3
V3.0.2
V3.0.1
V3.0.0
V2.0.9
V2.0.8
V2.0.7
V2.0.6
V2.0.5
V2.0.4
V2.0.3
V2.0.2
V2.0.1
V2.0.0
V1.4.3
V1.4.2
V1.4.1
V1.4.0
V1.3.9
V1.3.8
V1.3.7
V1.3.6
V1.3.5
V1.3.3
V1.3.2
V1.3.1
V1.3.0
V1.2.2
V1.2.1
V1.2.0
V1.1.9
V1.1.8
V1.1.7
V1.1.6
V1.1.5
V1.1.4
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/admin/controller/system/ConfigController.php
+2
-2
apps/admin/controller/system/ConfigController.php
with
2 additions
and
2 deletions
+2
-2
apps/admin/controller/system/ConfigController.php
+
2
-
2
View file @
8ba5a6cc
...
...
@@ -96,9 +96,9 @@ class ConfigController extends Controller
{
$config
=
file_get_contents
(
CONF_PATH
.
'/config.php'
);
if
(
is_numeric
(
$value
))
{
$config
=
preg_replace
(
'/(\''
.
$key
.
'\'([\s]+)?=>([\s]+)?)[\w\'\"]+,/'
,
'${1}'
.
$value
.
','
,
$config
);
$config
=
preg_replace
(
'/(\''
.
$key
.
'\'([\s]+)?=>([\s]+)?)[\w\'\"
,
]+,/'
,
'${1}'
.
$value
.
','
,
$config
);
}
else
{
$config
=
preg_replace
(
'/(\''
.
$key
.
'\'([\s]+)?=>([\s]+)?)[\w\'\"]+,/'
,
'${1}\''
.
$value
.
'\','
,
$config
);
$config
=
preg_replace
(
'/(\''
.
$key
.
'\'([\s]+)?=>([\s]+)?)[\w\'\"
,
]+,/'
,
'${1}\''
.
$value
.
'\','
,
$config
);
}
return
file_put_contents
(
CONF_PATH
.
'/config.php'
,
$config
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help