mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
parent
40972e8cd4
commit
0076da9c6c
2 changed files with 4 additions and 2 deletions
|
@ -2326,7 +2326,9 @@ if (!class_exists('Video')) {
|
|||
if ($suggestedOnly) {
|
||||
$sql .= " AND v.isSuggested = 1 AND v.status = '" . self::$statusActive . "' ";
|
||||
$sql .= " ORDER BY RAND() ";
|
||||
} else {
|
||||
} else if ($with_order_only) {
|
||||
$sql .= " ORDER BY v.`order` ASC ";
|
||||
}else {
|
||||
$sql .= " ORDER BY v.created DESC ";
|
||||
}
|
||||
if (strpos(mb_strtolower($sql), 'limit') === false) {
|
||||
|
|
|
@ -10,7 +10,7 @@ if (!Permissions::canAdminVideos()) {
|
|||
|
||||
$videos = array();
|
||||
setRowCount(100);
|
||||
$row = Video::getAllVideosLight("viewable", false, true, false, '', 0, true);
|
||||
$row = Video::getAllVideosLight("", false, true, false, '', 0, true);
|
||||
foreach ($row as $key => $value) {
|
||||
$videos[] = array('videos_id' => $value['id'], 'title' => $value['title'], 'order' => $value['order']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue