From f2b0375df6023dbfca93302e1109f65342a74056 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 14 Jul 2021 13:45:55 +0200 Subject: [PATCH] user warningMsg() instead of plain html code --- views/bootstrap/class.CheckInDocument.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/views/bootstrap/class.CheckInDocument.php b/views/bootstrap/class.CheckInDocument.php index 904596c8b..8fe539ab5 100644 --- a/views/bootstrap/class.CheckInDocument.php +++ b/views/bootstrap/class.CheckInDocument.php @@ -124,19 +124,13 @@ $(document).ready(function() { if ($checkoutstatus = $document->checkOutStatus()) { switch($checkoutstatus) { case 1: - print "
"; - printMLText("checkedout_file_has_disappeared"); - print "
"; + $this->warningMsg(getMLText("checkedout_file_has_disappeared")); break; case 2: - print "
"; - printMLText("checkedout_file_has_different_version"); - print "
"; + $this->warningMsg(getMLText("checkedout_file_has_different_version")); break; case 3: - print "
"; - printMLText("checkedout_file_is_unchanged"); - print "
"; + $this->warningMsg(getMLText("checkedout_file_is_unchanged")); break; } }