ADD вывод точек в порядке прохождения модерации
This commit is contained in:
parent
6a01f3a52b
commit
09fddc0061
|
|
@ -23,7 +23,7 @@ class FeedController extends Controller
|
|||
// --------- POINTS
|
||||
$points = Point::model()->getAll(array(
|
||||
'where' => '`moderate` = 1',
|
||||
'order' => '`date` DESC',
|
||||
'order' => '`ord` DESC',
|
||||
'limit' => 5,
|
||||
));
|
||||
foreach ($points as $point) {
|
||||
|
|
|
|||
|
|
@ -267,6 +267,7 @@ class JsonController extends Controller
|
|||
'type' => Notifications::typePointConfirmed,
|
||||
'date' => time(),
|
||||
));
|
||||
$_POST['ord'] = time();
|
||||
}
|
||||
|
||||
$point->setValues($_POST);
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ class PageController extends Controller
|
|||
krsort($pages);
|
||||
|
||||
$param = array();
|
||||
$param['order'] = 'id DESC';
|
||||
$param['order'] = '`ord` DESC';
|
||||
if (App::getParam('category')) {
|
||||
$param['where'] = 'categoryId = ' . (int) App::getParam('category') . ' AND `moderate` = 1';
|
||||
} else if (App::getParam('user')) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue