added spaces + some curly braces + some usage of dbm::is_result()
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
4c72cb3584
commit
d529125c8e
3 changed files with 9 additions and 5 deletions
|
@ -859,7 +859,7 @@ function admin_page_site(App $a) {
|
||||||
$allowed_theme_list = Config::get('system', 'allowed_themes');
|
$allowed_theme_list = Config::get('system', 'allowed_themes');
|
||||||
|
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
if (intval(file_exists($file.'/unsupported')))
|
if (file_exists($file.'/unsupported'))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1345,10 +1345,11 @@ function photos_content(App $a) {
|
||||||
// The query leads to a really intense used index.
|
// The query leads to a really intense used index.
|
||||||
// By now we hide it if someone wants to.
|
// By now we hide it if someone wants to.
|
||||||
if (!Config::get('system', 'no_count', false)) {
|
if (!Config::get('system', 'no_count', false)) {
|
||||||
if ($_GET['order'] === 'posted')
|
if ($_GET['order'] === 'posted') {
|
||||||
$order = 'ASC';
|
$order = 'ASC';
|
||||||
else
|
} else {
|
||||||
$order = 'DESC';
|
$order = 'DESC';
|
||||||
|
}
|
||||||
|
|
||||||
$prvnxt = qu("SELECT `resource-id` FROM `photo` WHERE `album` = '%s' AND `uid` = %d AND `scale` = 0
|
$prvnxt = qu("SELECT `resource-id` FROM `photo` WHERE `album` = '%s' AND `uid` = %d AND `scale` = 0
|
||||||
$sql_extra ORDER BY `created` $order ",
|
$sql_extra ORDER BY `created` $order ",
|
||||||
|
@ -1361,10 +1362,12 @@ function photos_content(App $a) {
|
||||||
if ($prvnxt[$z]['resource-id'] == $ph[0]['resource-id']) {
|
if ($prvnxt[$z]['resource-id'] == $ph[0]['resource-id']) {
|
||||||
$prv = $z - 1;
|
$prv = $z - 1;
|
||||||
$nxt = $z + 1;
|
$nxt = $z + 1;
|
||||||
if ($prv < 0)
|
if ($prv < 0) {
|
||||||
$prv = count($prvnxt) - 1;
|
$prv = count($prvnxt) - 1;
|
||||||
if ($nxt >= count($prvnxt))
|
}
|
||||||
|
if ($nxt >= count($prvnxt)) {
|
||||||
$nxt = 0;
|
$nxt = 0;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -623,6 +623,7 @@ function profiles_content(App $a) {
|
||||||
|
|
||||||
require_once('include/profile_selectors.php');
|
require_once('include/profile_selectors.php');
|
||||||
|
|
||||||
|
|
||||||
$a->page['htmlhead'] .= replace_macros(get_markup_template('profed_head.tpl'), array(
|
$a->page['htmlhead'] .= replace_macros(get_markup_template('profed_head.tpl'), array(
|
||||||
'$baseurl' => App::get_baseurl(true),
|
'$baseurl' => App::get_baseurl(true),
|
||||||
));
|
));
|
||||||
|
|
Loading…
Reference in a new issue