mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 11:36:20 +05:30
Update dispatch.php
This commit is contained in:
parent
24f6a63638
commit
5e299c84ad
1 changed files with 4 additions and 2 deletions
|
|
@ -164,9 +164,11 @@ function save_theme_config($data = array(), $new = array(), $theme = null)
|
|||
if (!is_dir($dir)) {
|
||||
mkdir($dir, 0775, true);
|
||||
}
|
||||
$string = '';
|
||||
$config_file = $dir . $theme . '.ini';
|
||||
|
||||
$string = file_get_contents($config_file) . "\n";
|
||||
if (file_exists($config_file)) {
|
||||
$string = file_get_contents($config_file) . "\n";
|
||||
}
|
||||
|
||||
foreach ($data as $word => $value) {
|
||||
$value = json_encode($value, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue