Misc/Fixup

* remove unnecessary tab components from ?unrated-comments page
 * fix urls generated by guides listview
This commit is contained in:
Sarjuuk
2022-03-24 10:37:13 +01:00
parent 05f6d68070
commit 32b4c451e4
2 changed files with 3 additions and 19 deletions

View File

@@ -92,7 +92,7 @@ class GuideList extends BaseType
'description' => $this->getField('description'),
'sticky' => !!($this->getField('cuFlags') & CC_FLAG_STICKY),
'nvotes' => $this->getField('nvotes'),
'url' => '/?guide=' . ($this->getField('url') ?: $this->id),
'url' => '?guide=' . ($this->getField('url') ?: $this->id),
'status' => $this->getField('status'),
'author' => $this->getField('author'),
'authorroles' => $this->getField('roles'),
@@ -103,8 +103,6 @@ class GuideList extends BaseType
'date' => $this->getField('date'), // ok
'when' => date(Util::$dateFormatInternal, $this->getField('date'))
);
}
return $data;