diff --git a/views/bootstrap/class.ObjectCheck.php b/views/bootstrap/class.ObjectCheck.php index a5460e618..5664ec40c 100644 --- a/views/bootstrap/class.ObjectCheck.php +++ b/views/bootstrap/class.ObjectCheck.php @@ -103,7 +103,7 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Theme_Style { if($objects) { if($repair) { - echo "
".getMLText('repairing_objects')."
"; + $this->warningMsg(getMLText('repairing_objects')); } print ""; print "\n\n"; @@ -114,6 +114,7 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Theme_Style { print "\n"; print "\n"; print "\n\n\n"; + $needsrepair = false; foreach($objects as $object) { if($object['object']->isType('document')) { $document = $object['object']; @@ -123,6 +124,11 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Theme_Style { echo $txt; else echo $this->documentListRow($document, $previewer, false); + echo ""; + $needsrepair = true; } } elseif($object['object']->isType('documentcontent')) { $document = $object['object']->getDocument(); @@ -145,16 +151,19 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Theme_Style { echo $txt; else echo $this->folderListRow($folder, true); - echo ""; + echo ""; echo $this->folderListRowEnd($folder); + $needsrepair = true; } } } - $this->needsrepair = false; print "
".getMLText("error")."
".$object['msg']; + if($repair) + $document->repair(); + echo "".$object['msg']."".$object['msg']; + if($repair) + $folder->repair(); + echo "
\n"; - if($this->needsrepair && $repair == 0) { - echo '

'.getMLText('do_object_repair').'

'; + if($needsrepair && $repair == 0) { + echo '
'.getMLText('do_object_repair').'
'; } } } /* }}} */ @@ -593,7 +602,7 @@ $(document).ready( function() { $repairobjects = $this->params['repairobjects']; $this->enableClipboard = $this->params['enableclipboard']; - $this->htmlAddHeader(''."\n", 'js'); +// $this->htmlAddHeader(''."\n", 'js'); $this->htmlStartPage(getMLText("admin_tools")); $this->globalNavigation();