mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 16:35:19 +00:00
cleanup
This commit is contained in:
parent
9fd1852930
commit
3fda761f81
1 changed files with 3 additions and 3 deletions
|
@ -313,9 +313,9 @@ class Stream extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($x || $vg) {
|
if ($x || $vg) {
|
||||||
$title = replace_macros(Theme::get_template("section_title.tpl"), array(
|
$title = replace_macros(Theme::get_template("section_title.tpl"), [
|
||||||
'$title' => sprintf(t('Access list: %s'), (($vg) ?: $x['gname']))
|
'$title' => sprintf(t('Access list: %s'), (($vg) ?: $x['gname']))
|
||||||
));
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$o = $title . $status_editor;
|
$o = $title . $status_editor;
|
||||||
|
@ -667,7 +667,7 @@ class Stream extends Controller
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($update_unseen && (!(isset($_SESSION['sudo']) && $_SESSION['sudo']))) {
|
if ($update_unseen && empty($_SESSION['sudo'])) {
|
||||||
$x = ['channel_id' => local_channel(), 'update' => 'unset'];
|
$x = ['channel_id' => local_channel(), 'update' => 'unset'];
|
||||||
Hook::call('update_unseen', $x);
|
Hook::call('update_unseen', $x);
|
||||||
if ($x['update'] === 'unset' || intval($x['update'])) {
|
if ($x['update'] === 'unset' || intval($x['update'])) {
|
||||||
|
|
Loading…
Reference in a new issue