Skip to content
Snippets Groups Projects

Dev#17990 miop integration suite

Merged Laurent requested to merge dev#17990_miop_integration_suite into master
Compare and
+ 404
503
Preferences
Compare changes
Files
@@ -16,7 +16,7 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with AFI-OPAC 2.0; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class SitoController extends Zend_Controller_Action {
@@ -50,14 +50,14 @@ class SitoController extends Zend_Controller_Action {
public function viewrecentAction() {
$class_sito = new Class_Sitotheque();
$nb_sito = (int)$this->_request->getParam('nb');
$nb_sito = (int)$this->_request->getParam('nb', 10);
$limit = ($nb_sito < 1) ? 10 : $nb_sito;
if ($nb_sito < 1) $limit = 10; else $limit = $nb_sito;
$sitos = $class_sito->getLastSito($limit);
$this->view->sitos = $sitos;
$this->view->title = $this->view->_("Derniers Sites");
$this->renderScript('sito/viewsitos.phtml');
$sites = Class_Sitotheque::findAllBy(['order' => 'date_maj desc',
'limit' => $limit]);
$this->view->sitos = $sites;
$this->view->title = $this->view->_("Derniers Sites");
$this->renderScript('sito/viewsitos.phtml');
}
@@ -66,7 +66,7 @@ class SitoController extends Zend_Controller_Action {
$preferences = Class_Profil::getCurrentProfil()
->getModuleAccueilPreferences($id_module, 'SITO');
$sites = Class_Sitotheque::getSitesFromIdsAndCategories(
explode('-', $preferences['id_items']),
explode('-', $preferences['id_categorie']));