Code standards againg
This commit is contained in:
parent
88235fbc6c
commit
3452699750
|
@ -72,7 +72,7 @@ class Reports extends BaseModeration
|
||||||
$condition = ["SELECT `post-view`.`created`, `post-view`.`guid`, `post-view`.`plink`, `post-view`.`title`, `post-view`.`body`, `report-post`.`rid`
|
$condition = ["SELECT `post-view`.`created`, `post-view`.`guid`, `post-view`.`plink`, `post-view`.`title`, `post-view`.`body`, `report-post`.`rid`
|
||||||
FROM `report-post` INNER JOIN `post-view` ON `report-post`.`uri-id` = `post-view`.`uri-id`"];
|
FROM `report-post` INNER JOIN `post-view` ON `report-post`.`uri-id` = `post-view`.`uri-id`"];
|
||||||
$condition = DBA::mergeConditions($condition, ['rid' => array_keys($reports)]);
|
$condition = DBA::mergeConditions($condition, ['rid' => array_keys($reports)]);
|
||||||
$posts = $this->database->p(array_shift($condition), $condition);
|
$posts = $this->database->p(array_shift($condition), $condition);
|
||||||
while ($post = $this->database->fetch($posts)) {
|
while ($post = $this->database->fetch($posts)) {
|
||||||
if (in_array($post['rid'], array_keys($reports))) {
|
if (in_array($post['rid'], array_keys($reports))) {
|
||||||
$post['created'] = DateTimeFormat::local($post['created'], DateTimeFormat::MYSQL);
|
$post['created'] = DateTimeFormat::local($post['created'], DateTimeFormat::MYSQL);
|
||||||
|
@ -91,8 +91,8 @@ class Reports extends BaseModeration
|
||||||
'$description' => $this->t('This page display reports created by our or remote users.'),
|
'$description' => $this->t('This page display reports created by our or remote users.'),
|
||||||
'$no_data' => $this->t('No report exists at this node.'),
|
'$no_data' => $this->t('No report exists at this node.'),
|
||||||
|
|
||||||
'$h_reports' => $this->t('Reports'),
|
'$h_reports' => $this->t('Reports'),
|
||||||
'$th_reports' => [$this->t('Created'), $this->t('Photo'), $this->t('Name'), $this->t('Comment'), $this->t('Category')],
|
'$th_reports' => [$this->t('Created'), $this->t('Photo'), $this->t('Name'), $this->t('Comment'), $this->t('Category')],
|
||||||
|
|
||||||
// values //
|
// values //
|
||||||
'$baseurl' => $this->baseUrl,
|
'$baseurl' => $this->baseUrl,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user