diff --git a/ground/controllers/PageController.php b/ground/controllers/PageController.php index 5dd2636..3ed7fac 100644 --- a/ground/controllers/PageController.php +++ b/ground/controllers/PageController.php @@ -36,7 +36,11 @@ class PageController extends Controller // ------------------------------------------ $param['order']='id DESC'; - $param['where']=App::getParam('category') ? 'categoryId = '.(int)App::getParam('category') : ''; + if (App::getParam('category')) { + $param['where'] = 'categoryId = '.(int)App::getParam('category'); + } else { + $param['limit'] = 100; + } $points = Point::model()->getAll($param); $categories = Category::model()->getAll(array('order' => 'ord ASC')); diff --git a/ground/views/pointsTemplate.php b/ground/views/pointsTemplate.php index 7778452..fdd7925 100644 --- a/ground/views/pointsTemplate.php +++ b/ground/views/pointsTemplate.php @@ -20,8 +20,14 @@ foreach ($categories as $category) { } ?> +name.'"'; +} -