Skip to content

Commit fcd45c1

Browse files
authored
Merge pull request #34101 from nextcloud/fix/dashboard-controller-typo
Fix initial state typo in dashboard controller
2 parents b9cd652 + b1856d0 commit fcd45c1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

apps/dashboard/lib/Controller/DashboardController.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
class DashboardController extends Controller {
4646

4747
/** @var IInitialState */
48-
private $inititalState;
48+
private $initialState;
4949
/** @var IEventDispatcher */
5050
private $eventDispatcher;
5151
/** @var IManager */
@@ -66,7 +66,7 @@ public function __construct(
6666
) {
6767
parent::__construct($appName, $request);
6868

69-
$this->inititalState = $initialState;
69+
$this->initialState = $initialState;
7070
$this->eventDispatcher = $eventDispatcher;
7171
$this->dashboardManager = $dashboardManager;
7272
$this->config = $config;
@@ -105,10 +105,10 @@ public function index(): TemplateResponse {
105105
// It does not matter if some statuses are missing from the array, missing ones are considered enabled
106106
$statuses = ($statuses && count($statuses) > 0) ? $statuses : ['weather' => true];
107107

108-
$this->inititalState->provideInitialState('panels', $widgets);
109-
$this->inititalState->provideInitialState('statuses', $statuses);
110-
$this->inititalState->provideInitialState('layout', $userLayout);
111-
$this->inititalState->provideInitialState('firstRun', $this->config->getUserValue($this->userId, 'dashboard', 'firstRun', '1') === '1');
108+
$this->initialState->provideInitialState('panels', $widgets);
109+
$this->initialState->provideInitialState('statuses', $statuses);
110+
$this->initialState->provideInitialState('layout', $userLayout);
111+
$this->initialState->provideInitialState('firstRun', $this->config->getUserValue($this->userId, 'dashboard', 'firstRun', '1') === '1');
112112
$this->config->setUserValue($this->userId, 'dashboard', 'firstRun', '0');
113113

114114
$response = new TemplateResponse('dashboard', 'index', [

0 commit comments

Comments
 (0)