[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Installer: fix undefined prefs warnings

"Bruno Kambere \(@kambereBr\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a2be93dd683a_38196144668aa@gitlab-sidekiq-low-urgency-cpu-bound-v2-7cf778b8c7-5gpxj.mail>

Bruno Kambere pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
dbfdc6d2 by Alfred Syatsukwa at 2026-06-12T13:57:38+03:00
[FIX] Installer:  fix undefined prefs warnings
---
* [FIX] Installer: derive site_* prefs in initialize_prefs installer shortcut

* [FIX] Installer: define min_pass_length in bootstrap prefs during clean install

See merge request tikiwiki/tiki!10473

- - - - -


2 changed files:

- installer/tiki-installer.php
- lib/setup/prefs.php


Changes:

=====================================
installer/tiki-installer.php
=====================================
@@ -155,6 +155,8 @@ $prefs = [
     'remember_closed_rboxes' => 'n',
     // \Tiki\Smarty\SmartyTiki::initializePaths
     'feature_webservices' => 'n',
+    // lib/prefs/min.php
+    'min_pass_length' => 5,
 ];
 
 require_once 'lib/init/initlib.php';


=====================================
lib/setup/prefs.php
=====================================
@@ -253,6 +253,11 @@ function initialize_prefs($force = false)
 
     if (! $force && (defined('TIKI_IN_INSTALLER') || defined('TIKI_IN_TEST'))) {
         $prefs = get_default_prefs();
+        foreach ($user_overrider_prefs as $uop) {
+            if (isset($prefs[$uop])) {
+                $prefs['site_' . $uop] = $prefs[$uop];
+            }
+        }
         return;
     }
     $cachelib = TikiLib::lib('cache');



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/dbfdc6d26394fccb73d310ed2f77997a2fecb656

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/dbfdc6d26394fccb73d310ed2f77997a2fecb656
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.