Replace ->censorSubject to ->name
This commit is contained in:
parent
0d730b01ff
commit
766ca92286
7 changed files with 10 additions and 10 deletions
|
@ -99,7 +99,7 @@ class Reports extends Admin
|
|||
$forum = $topic->parent;
|
||||
$cur['fields']['post' . $report->id] = [
|
||||
'type' => 'str',
|
||||
'value' => __(['Post #%s ', $post->id, $post->link, $topic->censorSubject, $topic->link, $forum->forum_name, $forum->link]),
|
||||
'value' => __(['Post #%s ', $post->id, $post->link, $topic->name, $topic->link, $forum->forum_name, $forum->link]),
|
||||
'html' => true,
|
||||
];
|
||||
} else {
|
||||
|
|
|
@ -106,7 +106,7 @@ class Delete extends Page
|
|||
'info' => [
|
||||
'info' => [
|
||||
[
|
||||
'value' => __(['Topic %s', $post->parent->censorSubject]),
|
||||
'value' => __(['Topic %s', $post->parent->name]),
|
||||
],
|
||||
[
|
||||
'value' => __([$deleteTopic ? 'Topic by' : 'Reply by', $post->poster, \ForkBB\dt($post->posted)]),
|
||||
|
|
|
@ -247,7 +247,7 @@ class Moderate extends Page
|
|||
'Topic',
|
||||
[
|
||||
'id' => $this->curTopic->id,
|
||||
'name' => $this->curTopic->censorSubject,
|
||||
'name' => $this->curTopic->name,
|
||||
'page' => $page,
|
||||
]
|
||||
);
|
||||
|
@ -549,7 +549,7 @@ class Moderate extends Page
|
|||
$headers = [];
|
||||
foreach ($objects as $object) {
|
||||
if ($object instanceof Topic) {
|
||||
$headers[] = __(['Topic «%s»', $object->censorSubject]);
|
||||
$headers[] = __(['Topic «%s»', $object->name]);
|
||||
} else {
|
||||
$headers[] = __(['Post «%1$s by %2$s»', \ForkBB\dt($object->posted), $object->poster]);
|
||||
}
|
||||
|
@ -566,7 +566,7 @@ class Moderate extends Page
|
|||
|
||||
if ($this->firstTopic instanceof Topic) {
|
||||
$form['sets']['info']['info'][] = [
|
||||
'value' => __(['All posts will be posted in the «%s» topic', $this->firstTopic->censorSubject]),
|
||||
'value' => __(['All posts will be posted in the «%s» topic', $this->firstTopic->name]),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -171,7 +171,7 @@ class Report extends Page
|
|||
),
|
||||
'reason' => $report->message,
|
||||
'forumId' => $report->post->parent->parent->id,
|
||||
'topicSubject' => $report->post->parent->censorSubject,
|
||||
'topicSubject' => $report->post->parent->name,
|
||||
];
|
||||
|
||||
return $this->c->Mail
|
||||
|
|
|
@ -135,7 +135,7 @@ class Topic extends Page
|
|||
'Topic',
|
||||
[
|
||||
'id' => $topic->id,
|
||||
'name' => $topic->censorSubject,
|
||||
'name' => $topic->name,
|
||||
'page' => $topic->page
|
||||
]
|
||||
);
|
||||
|
|
|
@ -96,7 +96,7 @@ class Model extends DataModel
|
|||
'Topic',
|
||||
[
|
||||
'id' => $this->moved_to ?: $this->id,
|
||||
'name' => $this->censorSubject,
|
||||
'name' => $this->name,
|
||||
]
|
||||
);
|
||||
}
|
||||
|
@ -307,7 +307,7 @@ class Model extends DataModel
|
|||
'Topic',
|
||||
[
|
||||
'id' => $this->id,
|
||||
'name' => $this->censorSubject,
|
||||
'name' => $this->name,
|
||||
]
|
||||
);
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
</ul>
|
||||
<ul class="f-post-search-info">
|
||||
<li class="f-psi-forum">{!! __('Forum') !!}: <a href="{{ $post->parent->parent->link }}">{{ $post->parent->parent->forum_name }}</a></li>
|
||||
<li class="f-psi-topic">{!! __('Topic') !!}: <a href="{{ $post->parent->link }}">{{ $post->parent->censorSubject }}</a></li>
|
||||
<li class="f-psi-topic">{!! __('Topic') !!}: <a href="{{ $post->parent->link }}">{{ $post->parent->name }}</a></li>
|
||||
<li class="f-psi-reply">{!! __(['%s Reply', $post->parent->num_replies, num($post->parent->num_replies)]) !!}</li>
|
||||
@if ($post->parent->showViews)
|
||||
<li class="f-psi-view">{!! __(['%s View', $post->parent->num_views, num($post->parent->num_views)]) !!}</li>
|
||||
|
|
Loading…
Add table
Reference in a new issue