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;
}
}