mirror of
https://github.com/typemill/typemill.git
synced 2025-07-25 00:02:28 +02:00
Finish 2.18.0
This commit is contained in:
2
cache/timer.yaml
vendored
2
cache/timer.yaml
vendored
@@ -1,2 +1,2 @@
|
||||
licenseupdate: 1751827655
|
||||
refreshnavi: 1752352809
|
||||
refreshnavi: 1752466762
|
||||
|
@@ -189,35 +189,14 @@ class Settings
|
||||
# remove them from $newSettings to avoid overwriting twice
|
||||
unset($newSettings['plugins'], $newSettings['themes']);
|
||||
|
||||
# add current theme from usersettings
|
||||
$newSettings['theme'] = $userSettings['theme'];
|
||||
|
||||
# final combined settings
|
||||
$settings = array_merge($newSettings, [
|
||||
'plugins' => $plugins,
|
||||
'themes' => $themes,
|
||||
]);
|
||||
|
||||
/*
|
||||
# merge usersettings with new settings
|
||||
$settings = array_merge($userSettings, $newSettings);
|
||||
|
||||
# make sure that multidimensional arrays are merged correctly
|
||||
# for example: only one plugin data will be passed with new settings, with array merge all others will be deleted.
|
||||
foreach($newSettings as $key => $settingsItems)
|
||||
{
|
||||
if(is_array($settingsItems) && isset($userSettings[$key]))
|
||||
{
|
||||
if($this->array_is_list($settingsItems))
|
||||
{
|
||||
# for numeric/list arrays instead of associative arrays we only use new values
|
||||
$settings[$key] = $newSettings[$key];
|
||||
}
|
||||
else
|
||||
{
|
||||
# changed from array_merge to array_replace to preserve the index, otherwise numeric values get re-indexed. Alternative is
|
||||
$settings[$key] = array_replace($userSettings[$key], $newSettings[$key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
if($this->storage->updateYaml('settingsFolder', '', 'settings.yaml', $settings))
|
||||
|
@@ -1,4 +1,4 @@
|
||||
version: '2.17.4'
|
||||
version: '2.18.0'
|
||||
title: 'Typemill'
|
||||
author: 'Unknown'
|
||||
copyright: false
|
||||
|
Reference in New Issue
Block a user