REFACTORING #1880 @4h30m: another ugly refactoring commit

This commit is contained in:
Michal Kváček
2016-10-25 16:50:04 +02:00
parent 28f67ffe3c
commit cc999dd24e
71 changed files with 827 additions and 608 deletions
@@ -48,7 +48,7 @@ class SetHomepage extends Controller
$homepage = null;
foreach ($allPages as $page) {
if ($page->is_homepage) {
if ($page->isHomepage) {
$homepage = $page;
continue;
}
@@ -82,7 +82,7 @@ class SetHomepage extends Controller
{
$page = $this->content->getOne($id);
if ($page->is_homepage) {
if ($page->isHomepage) {
return redirect()
->back()
->with('error', trans('template::admin/setHomepage.cannotSetHomepageAsPartOfHomepage'));