diff --git a/views/bootstrap/class.ObjectCheck.php b/views/bootstrap/class.ObjectCheck.php index 6da72ceea..7c322ca9c 100644 --- a/views/bootstrap/class.ObjectCheck.php +++ b/views/bootstrap/class.ObjectCheck.php @@ -146,9 +146,11 @@ class LetoDMS_View_ObjectCheck extends LetoDMS_Bootstrap_Style { $dms = $this->params['dms']; $user = $this->params['user']; $folder = $this->params['folder']; - $versions = $this->params['unlinkedcontent']; + $unlinkedversions = $this->params['unlinkedcontent']; + $nofilesizeversions = $this->params['nofilesizeversions']; $repair = $this->params['repair']; $unlink = $this->params['unlink']; + $setfilesize = $this->params['setfilesize']; $this->htmlStartPage(getMLText("admin_tools")); $this->globalNavigation(); @@ -183,7 +185,7 @@ class LetoDMS_View_ObjectCheck extends LetoDMS_Bootstrap_Style { echo "

".getMLText('unlinking_objects')."

"; } - if($versions) { + if($unlinkedversions) { print ""; print "\n\n"; print "\n"; @@ -192,7 +194,7 @@ class LetoDMS_View_ObjectCheck extends LetoDMS_Bootstrap_Style { print "\n"; print "\n"; print "\n\n\n"; - foreach($versions as $version) { + foreach($unlinkedversions as $version) { $doc = $version->getDocument(); print ""; if($unlink) { @@ -206,6 +208,34 @@ class LetoDMS_View_ObjectCheck extends LetoDMS_Bootstrap_Style { } } + $this->contentContainerEnd(); + + $this->contentHeading(getMLText("missing_filesize")); + $this->contentContainerStart(); + + if($nofilesizeversions) { + print "
".getMLText("document")."".getMLText("mimetype")."
".$doc->getId()."".$version->getVersion()."".$version->getOriginalFileName()."".$version->getMimeType()."
"; + print "\n\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n\n\n"; + foreach($nofilesizeversions as $version) { + $doc = $version->getDocument(); + print ""; + if($setfilesize) { + $version->setFileSize(); + } + print "\n"; + } + print "
".getMLText("document")."".getMLText("version")."".getMLText("original_filename")."".getMLText("mimetype")."
".$doc->getId()."".$version->getVersion()."".$version->getOriginalFileName()."".$version->getMimeType()."
\n"; + if($setfilesize == 0) { + echo '

'.getMLText('do_object_setfilesize').'

'; + } + } + $this->contentContainerEnd(); $this->htmlEndPage(); } /* }}} */