Fix wrong Category model function usage in rest of controllers

This commit is contained in:
DariusIII
2018-09-06 14:50:09 +02:00
parent c86b279ee3
commit eaf7e258c0
6 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ class ConsoleController extends BasePageController
if ((int) $category === -1) {
$this->smarty->assign('catname', 'All');
} else {
$cdata = (new Category)->find($category);
$cdata = Category::find($category);
if ($cdata !== null) {
$this->smarty->assign('catname', $cdata);
} else {