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