From 5bdeeaa5c0f3e96b2d5c8122e0b32881e3c3223d Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Tue, 27 Oct 2015 00:29:35 +0300 Subject: [PATCH] FIX --- ground/controllers/PageController.php | 3 +++ ground/views/pointsTemplate.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ground/controllers/PageController.php b/ground/controllers/PageController.php index e71a450..115621b 100644 --- a/ground/controllers/PageController.php +++ b/ground/controllers/PageController.php @@ -38,9 +38,12 @@ class PageController extends Controller } // ------------------------------------------ + $param = array(); + $param['where'] = '`moderate` = 1'; $pointsCount = Point::model()->getCount($param); $pagesCount = ceil($pointsCount/self::elementsByPage); $page = isset($_GET['page']) ? abs((int)$_GET['page']) : $pagesCount; + $param = array(); $param['order'] = 'id DESC'; if (App::getParam('category')) { diff --git a/ground/views/pointsTemplate.php b/ground/views/pointsTemplate.php index 88d3e70..b083b4a 100644 --- a/ground/views/pointsTemplate.php +++ b/ground/views/pointsTemplate.php @@ -59,7 +59,7 @@ if (App::getParam('user')) { - +