diff --git a/module/block/control.php b/module/block/control.php index 659017502c..bfcb2c4ae6 100755 --- a/module/block/control.php +++ b/module/block/control.php @@ -2084,13 +2084,17 @@ class block extends control $pager = new pager(0, 6, 1); $docList = $this->loadModel('doc')->getDocsByBrowseType('byediteddate', 0, 0, 'editedDate_desc', $pager); + $libList = array(); foreach($docList as $doc) { $doc->editedDate = substr($doc->editedDate, 0, 10); $doc->editInterval = helper::getDateInterval($doc->editedDate); + + $libList[] = $doc->lib; } - $this->view->docList = $docList; + $this->view->pricDocs = $this->doc->getPrivDocs($libList); + $this->view->docList = $docList; } /** diff --git a/module/block/view/docrecentupdateblock.html.php b/module/block/view/docrecentupdateblock.html.php index 3321d13b61..8b07d377ac 100644 --- a/module/block/view/docrecentupdateblock.html.php +++ b/module/block/view/docrecentupdateblock.html.php @@ -11,28 +11,24 @@ */ ?>
-
- - +