|
@@ -18,7 +18,7 @@ class OtCustomizerController extends ActionController {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Index action (default action)
|
|
* Index action (default action)
|
|
|
- * Displays the customize page on the backend
|
|
|
|
|
|
|
+ * Displays the customizer page on the backend
|
|
|
*/
|
|
*/
|
|
|
public function indexAction() {
|
|
public function indexAction() {
|
|
|
|
|
|
|
@@ -35,7 +35,7 @@ class OtCustomizerController extends ActionController {
|
|
|
$this->view->assign('rootPage', $rootPageUid);
|
|
$this->view->assign('rootPage', $rootPageUid);
|
|
|
$this->view->assign('templates', OtPageRepository::templates);
|
|
$this->view->assign('templates', OtPageRepository::templates);
|
|
|
|
|
|
|
|
- $pageRepository = new OtPageRepository();
|
|
|
|
|
|
|
+ $pageRepository = GeneralUtility::makeInstance(OtPageRepository::class);
|
|
|
$this->view->assign('currentTemplate', $pageRepository->getCurrentTemplate($rootPageUid));
|
|
$this->view->assign('currentTemplate', $pageRepository->getCurrentTemplate($rootPageUid));
|
|
|
$this->view->assign('preferences', $pageRepository->getTemplatePreferences($rootPageUid));
|
|
$this->view->assign('preferences', $pageRepository->getTemplatePreferences($rootPageUid));
|
|
|
|
|
|
|
@@ -127,7 +127,7 @@ class OtCustomizerController extends ActionController {
|
|
|
$pageId = (int) GeneralUtility::_GP('id');
|
|
$pageId = (int) GeneralUtility::_GP('id');
|
|
|
|
|
|
|
|
// Get the root page of the site
|
|
// Get the root page of the site
|
|
|
- $otPageRepository = new OtPageRepository();
|
|
|
|
|
|
|
+ $otPageRepository = GeneralUtility::makeInstance(OtPageRepository::class);
|
|
|
$rootPage = $otPageRepository->getRootPageFor($pageId);
|
|
$rootPage = $otPageRepository->getRootPageFor($pageId);
|
|
|
|
|
|
|
|
if (!$rootPage['uid'] > 0) {
|
|
if (!$rootPage['uid'] > 0) {
|