Many route and themes related fixes

This commit is contained in:
DariusIII
2018-05-15 11:41:57 +02:00
parent 8b3f985b57
commit 647ccc06ca
30 changed files with 206 additions and 155 deletions
+3 -3
View File
@@ -79,9 +79,9 @@ class AdultController extends BasePageController
if ((int) $category === -1) {
$this->smarty->assign('catname', 'All');
} else {
$cdata = Category::find($category);
if ($cdata) {
$this->smarty->assign('catname', $cdata->parent !== null ? $cdata->parent->title.' > '.$cdata->title : $cdata->title);
$cdata = (new Category)->find($category);
if ($cdata !== null) {
$this->smarty->assign('catname', $cdata);
} else {
$this->show404();
}