mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 00:01:21 +00:00
Many route and themes related fixes
This commit is contained in:
@@ -65,10 +65,9 @@ class GamesController 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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user