[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [FIX] ignore system preferences when applying changes on preference update -...
"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <698af458ec248_3b184ef8123f6@gitlab-sidekiq-low-urgency-cpu-bound-v2-7c66b7f6c6-tj9n7.mail> |
Victor Emanouilov pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki
Commits:
f27c7155 by Victor Emanouilov at 2026-02-10T11:03:14+02:00
[FIX] ignore system preferences when applying changes on preference update - these are forced preferences that shouldn't update the global prefs array even temporarily - this fixes, for example, the inability to move db files to filesystem when fgal_use_dir is forced via system config
- - - - -
1 changed file:
- lib/prefslib.php
Changes:
=====================================
lib/prefslib.php
=====================================
@@ -647,7 +647,7 @@ class PreferencesLib
public function applyChanges($handled, $data, $limitation = null)
{
- global $user_overrider_prefs;
+ global $user_overrider_prefs, $systemConfiguration;
$tikilib = TikiLib::lib('tiki');
if (is_array($limitation)) {
@@ -658,6 +658,9 @@ class PreferencesLib
$changes = [];
foreach ($handled as $pref) {
+ if (isset($systemConfiguration->preference->$pref)) {
+ continue;
+ }
if (in_array($pref, $resets)) {
$tikilib->delete_preference($pref);
$changes[$pref] = ['type' => 'reset'];
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/f27c71558986db72d389dd962b3992653a9e7a30
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/f27c71558986db72d389dd962b3992653a9e7a30
You're receiving this email because of your account on gitlab.com.
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs