diff --git a/languages/en_GB/lang.inc b/languages/en_GB/lang.inc index 73ab49c98..b90eb0228 100644 --- a/languages/en_GB/lang.inc +++ b/languages/en_GB/lang.inc @@ -860,6 +860,8 @@ $text = array( 'unknown_owner' => "Unknown owner id", 'unknown_user' => "Unknown user id", 'unlinked_content' => "Unlinked content", +'unlinked_folders' => "Unlinked folders", +'unlinked_documents' => "Unlinked documents", 'unlinking_objects' => "Unlinking content", 'unlock_cause_access_mode_all' => "You can still update it because you have access-mode \"all\". Locking will automatically be removed.", 'unlock_cause_locking_user' => "You can still update it because you are also the one that locked it. Locking will automatically be removed.", diff --git a/views/bootstrap/class.ObjectCheck.php b/views/bootstrap/class.ObjectCheck.php index 98836ff20..6fdbbec02 100644 --- a/views/bootstrap/class.ObjectCheck.php +++ b/views/bootstrap/class.ObjectCheck.php @@ -168,6 +168,8 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style { $user = $this->params['user']; $folder = $this->params['folder']; $unlinkedversions = $this->params['unlinkedcontent']; + $unlinkedfolders = $this->params['unlinkedfolders']; + $unlinkeddocuments = $this->params['unlinkeddocuments']; $nofilesizeversions = $this->params['nofilesizeversions']; $nochecksumversions = $this->params['nochecksumversions']; $repair = $this->params['repair']; @@ -202,6 +204,52 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style { } $this->contentContainerEnd(); + if($unlinkedfolders) { + $this->contentHeading(getMLText("unlinked_folders")); + $this->contentContainerStart(); + print ""; + print "\n\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n\n\n"; + foreach($unlinkedfolders as $error) { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + print "
".getMLText("name")."".getMLText("id")."".getMLText("parent")."".getMLText("error")."
".$error['name']."".$error['id']."".$error['parent']."".$error['msg']."
\n"; + $this->contentContainerEnd(); + } + + if($unlinkeddocuments) { + $this->contentHeading(getMLText("unlinked_documents")); + $this->contentContainerStart(); + print ""; + print "\n\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n\n\n"; + foreach($unlinkeddocuments as $error) { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + print "
".getMLText("name")."".getMLText("id")."".getMLText("parent")."".getMLText("error")."
".$error['name']."".$error['id']."".$error['parent']."".$error['msg']."
\n"; + $this->contentContainerEnd(); + } + $this->contentHeading(getMLText("unlinked_content")); $this->contentContainerStart(); if($unlink) {