Replaced Moment with Carbon #84
1 changed files with 3 additions and 1 deletions
|
@ -62,8 +62,10 @@ class ThemeController extends Controller
|
||||||
//if coming from theme page, grabs id of latest page
|
//if coming from theme page, grabs id of latest page
|
||||||
if ($id == null) {
|
if ($id == null) {
|
||||||
$uuid = $this->getPageUUID();
|
$uuid = $this->getPageUUID();
|
||||||
|
} else {
|
||||||
|
//get page by uuid
|
||||||
|
$page = $this->pages->getByUuid($id);
|
||||||
}
|
}
|
||||||
$page = $this->pages->getByUuid($uuid);
|
|
||||||
}
|
}
|
||||||
$pageData = $this->sort->page($page);
|
$pageData = $this->sort->page($page);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue