Always provide the title variable
This commit is contained in:
parent
bbb4ffb7a0
commit
13addaf901
2 changed files with 4 additions and 0 deletions
|
@ -635,6 +635,8 @@ class Conversation
|
||||||
$title = $item['title'];
|
$title = $item['title'];
|
||||||
} elseif (!empty($item['content-warning']) && $this->pConfig->get(local_user(), 'system', 'disable_cw', false)) {
|
} elseif (!empty($item['content-warning']) && $this->pConfig->get(local_user(), 'system', 'disable_cw', false)) {
|
||||||
$title = ucfirst($item['content-warning']);
|
$title = ucfirst($item['content-warning']);
|
||||||
|
} else {
|
||||||
|
$title = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$tmp_item = [
|
$tmp_item = [
|
||||||
|
|
|
@ -393,6 +393,8 @@ class Post
|
||||||
$title = $item['title'];
|
$title = $item['title'];
|
||||||
} elseif (!empty($item['content-warning']) && DI::pConfig()->get(local_user(), 'system', 'disable_cw', false)) {
|
} elseif (!empty($item['content-warning']) && DI::pConfig()->get(local_user(), 'system', 'disable_cw', false)) {
|
||||||
$title = ucfirst($item['content-warning']);
|
$title = ucfirst($item['content-warning']);
|
||||||
|
} else {
|
||||||
|
$title = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DI::pConfig()->get(local_user(), 'system', 'hide_dislike')) {
|
if (DI::pConfig()->get(local_user(), 'system', 'hide_dislike')) {
|
||||||
|
|
Loading…
Reference in a new issue