Skip to content
GitLab
Menu
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
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