aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-02-09 17:54:59 -0800
committerChristopher Ng <chrng8@gmail.com>2023-02-09 17:54:59 -0800
commitc77998209f779dfccd86afeeafd43a7bbd886ff2 (patch)
treeff1b5fc33b1d5115f0f62eb4ea02848cdf468bc6 /lib
parente47d56ac36d0f1d3e47392a7d9688decf847e1bc (diff)
downloadnextcloud-server-c77998209f779dfccd86afeeafd43a7bbd886ff2.tar.gz
nextcloud-server-c77998209f779dfccd86afeeafd43a7bbd886ff2.zip
Port user menu to Vue
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/TemplateLayout.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index 5a4cd32e5df..d127443944f 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -130,7 +130,7 @@ class TemplateLayout extends \OC_Template {
$navigation = $this->navigationManager->getAll();
$this->assign('navigation', $navigation);
$settingsNavigation = $this->navigationManager->getAll('settings');
- $this->assign('settingsnavigation', $settingsNavigation);
+ $this->initialState->provideInitialState('core', 'settingsNavEntries', $settingsNavigation);
foreach ($navigation as $entry) {
if ($entry['active']) {
@@ -268,7 +268,7 @@ class TemplateLayout extends \OC_Template {
$this->assign('cssfiles', []);
$this->assign('printcssfiles', []);
- $this->assign('versionHash', self::$versionHash);
+ $this->initialState->provideInitialState('core', 'versionHash', self::$versionHash);
foreach ($cssFiles as $info) {
$web = $info[1];
$file = $info[2];