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 "".getMLText("document")." | \n"; @@ -192,7 +194,7 @@ class LetoDMS_View_ObjectCheck extends LetoDMS_Bootstrap_Style { print "".getMLText("mimetype")." | \n"; print "\n"; print " | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
".$doc->getId()." | ".$version->getVersion()." | ".$version->getOriginalFileName()." | ".$version->getMimeType()." | "; 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")." | \n"; + print "".getMLText("version")." | \n"; + print "".getMLText("original_filename")." | \n"; + print "".getMLText("mimetype")." | \n"; + print "\n"; + print " |
---|---|---|---|---|
".$doc->getId()." | ".$version->getVersion()." | ".$version->getOriginalFileName()." | ".$version->getMimeType()." | "; + if($setfilesize) { + $version->setFileSize(); + } + print "