From 6adab624db208a64f53e304264b32dac0f980171 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Sat, 8 Nov 2025 16:19:28 +0100 Subject: [PATCH 1/5] create link to seeddms, before running composer --- build.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.xml b/build.xml index 265e6c1e8..34f22a802 100644 --- a/build.xml +++ b/build.xml @@ -257,13 +257,13 @@ + + + - - - From 7c696d4f7183f8c01edc25da6453bf7c025ab69a Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Sat, 8 Nov 2025 16:19:54 +0100 Subject: [PATCH 2/5] all files in classmap are in seeddms/inc --- composer-dist.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer-dist.json b/composer-dist.json index b77e8ab6c..e108080b0 100644 --- a/composer-dist.json +++ b/composer-dist.json @@ -22,7 +22,7 @@ "psr-4": { "SeedDMS\\Console\\": "seeddms/utils" }, - "classmap": ["seeddms/inc/inc.ClassTranslator.php", "seeddms/inc/inc.ClassSettings.php", "seeddms/inc/inc.Version.php", "inc/inc.ClassViewCommon.php", "inc/inc.ClassControllerCommon.php", "inc/inc.ClassController.php"] + "classmap": ["seeddms/inc/inc.ClassTranslator.php", "seeddms/inc/inc.ClassSettings.php", "seeddms/inc/inc.Version.php", "seeddms/inc/inc.ClassViewCommon.php", "seeddms/inc/inc.ClassControllerCommon.php", "seeddms/inc/inc.ClassController.php"] }, "require": { "pear/http_request2": "^2", From 03df65af051c44bf638a9bb95c9825202aa461ff Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Sat, 8 Nov 2025 16:26:17 +0100 Subject: [PATCH 3/5] getAvailableLanguages() is now a method of Settings itself --- inc/inc.ClassSettings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/inc.ClassSettings.php b/inc/inc.ClassSettings.php index 937f79ab6..ebb0bdf9a 100644 --- a/inc/inc.ClassSettings.php +++ b/inc/inc.ClassSettings.php @@ -1876,7 +1876,7 @@ class Settings { /* {{{ */ return $this->_availablelanguages; } - return getAvailableLanguages(); + return self::getAvailableLanguages(); } /* }}} */ } /* }}} */ From 55e6ce1b9befbe82f36ba7929f2c8ac32818bdc9 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Sat, 8 Nov 2025 16:34:58 +0100 Subject: [PATCH 4/5] call $settings->getLanguages() instead of the global function --- op/op.Login.php | 2 +- out/out.Login.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/op/op.Login.php b/op/op.Login.php index 40ea3051c..f8a3d3632 100644 --- a/op/op.Login.php +++ b/op/op.Login.php @@ -63,7 +63,7 @@ if(isset($_POST['pwd'])) { } $lang = ''; -if(isset($_REQUEST["lang"]) && strlen($_REQUEST["lang"])>0 && is_numeric(array_search($_REQUEST["lang"],getLanguages())) ) { +if(isset($_REQUEST["lang"]) && strlen($_REQUEST["lang"])>0 && is_numeric(array_search($_REQUEST["lang"],$settings->getLanguages())) ) { $lang = (string) $_REQUEST["lang"]; } diff --git a/out/out.Login.php b/out/out.Login.php index f669696ca..c18b3564b 100644 --- a/out/out.Login.php +++ b/out/out.Login.php @@ -55,7 +55,7 @@ if($view) { $view->setParam('referrer', $refer); $view->setParam('themes', $themes); $view->setParam('msg', $msg); - $view->setParam('languages', getLanguages()); + $view->setParam('languages', $settings->getLanguages()); $view->setParam('enablelanguageselector', $settings->_enableLanguageSelector); $view->setParam('enablethemeselector', $settings->_enableThemeSelector); $view->setParam('defaultlanguage', $settings->_language); From 3c72b1f00c3cfaf124f492f44035a6fbd7a85d28 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Sat, 8 Nov 2025 19:42:11 +0100 Subject: [PATCH 5/5] allow string as button for in menu --- views/bootstrap/class.Bootstrap.php | 16 ++++++++++------ views/bootstrap4/class.Bootstrap4.php | 16 ++++++++++------ 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 0a6058f26..30e561d44 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -654,14 +654,18 @@ background-image: linear-gradient(to bottom, #882222, #111111);; diff --git a/views/bootstrap4/class.Bootstrap4.php b/views/bootstrap4/class.Bootstrap4.php index d4e507c3e..57a52d96a 100644 --- a/views/bootstrap4/class.Bootstrap4.php +++ b/views/bootstrap4/class.Bootstrap4.php @@ -659,14 +659,18 @@ background-image: linear-gradient(to bottom, #882222, #111111);;