Merge https://github.com/friendica/red into pending_merge
This commit is contained in:
commit
d2ce5f3b80
@ -635,7 +635,7 @@ function photos_content(&$a) {
|
|||||||
);
|
);
|
||||||
if(count($r)) {
|
if(count($r)) {
|
||||||
$a->set_pager_total(count($r));
|
$a->set_pager_total(count($r));
|
||||||
$a->set_pager_itemspage(30);
|
$a->set_pager_itemspage(60);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($_GET['order'] === 'posted')
|
if($_GET['order'] === 'posted')
|
||||||
@ -753,12 +753,15 @@ function photos_content(&$a) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($_REQUEST['aj']) {
|
if($_REQUEST['aj']) {
|
||||||
if(! $r)
|
if(! $r) {
|
||||||
$ajaxout .= '<div id="content-complete"></div>';
|
$ajaxout .= '<div id="content-complete"></div>';
|
||||||
|
echo $ajaxout;
|
||||||
|
killme();
|
||||||
|
}
|
||||||
|
|
||||||
echo '<div id="photo-album-contents-' . $a->pager['page'] . '">';
|
echo '<div id="photo-album-contents-' . $a->pager['page'] . '">';
|
||||||
echo $ajaxout;
|
echo $ajaxout;
|
||||||
echo '<div>';
|
echo '</div>';
|
||||||
echo '<script>justifyPhotos(' . $a->pager['page'] . ');</script>';
|
echo '<script>justifyPhotos(' . $a->pager['page'] . ');</script>';
|
||||||
killme();
|
killme();
|
||||||
}
|
}
|
||||||
@ -1165,7 +1168,7 @@ function photos_content(&$a) {
|
|||||||
);
|
);
|
||||||
if(count($r)) {
|
if(count($r)) {
|
||||||
$a->set_pager_total(count($r));
|
$a->set_pager_total(count($r));
|
||||||
$a->set_pager_itemspage(30);
|
$a->set_pager_itemspage(60);
|
||||||
}
|
}
|
||||||
|
|
||||||
$r = q("SELECT `resource_id`, `id`, `filename`, type, `album`, max(`scale`) AS `scale` FROM `photo`
|
$r = q("SELECT `resource_id`, `id`, `filename`, type, `album`, max(`scale`) AS `scale` FROM `photo`
|
||||||
|
Reference in New Issue
Block a user