From 5d008374894b096a5c55564910ada595cdc0973d Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 6 May 2021 15:12:11 +0200 Subject: [PATCH] use warningMsg() instead of plain html --- views/bootstrap/class.Settings.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/views/bootstrap/class.Settings.php b/views/bootstrap/class.Settings.php index 6b9534c0e..d03deeec8 100644 --- a/views/bootstrap/class.Settings.php +++ b/views/bootstrap/class.Settings.php @@ -254,11 +254,9 @@ class SeedDMS_View_Settings extends SeedDMS_Theme_Style { _configFilePath)) { - print "
"; - echo "

".getMLText("settings_notwritable")."

"; - print "
"; -} + if(!is_writeable($settings->_configFilePath)) { + $this->warningMsg(getMLText("settings_notwritable")); + } ?>