mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 00:02:54 -04:00
Merge pull request #42697 from nextcloud/fix/add-settings-section-type-attribute-stable28
[stable28] Fix/add settings section type attribute
This commit is contained in:
commit
697d0de511
2 changed files with 2 additions and 1 deletions
|
|
@ -151,6 +151,7 @@ trait CommonSettingsTrait {
|
|||
if ($activeSection) {
|
||||
$templateParams['pageTitle'] = $activeSection->getName();
|
||||
$templateParams['activeSectionId'] = $activeSection->getID();
|
||||
$templateParams['activeSectionType'] = $type;
|
||||
}
|
||||
|
||||
return new TemplateResponse('settings', 'settings/frame', $templateParams);
|
||||
|
|
|
|||
|
|
@ -84,6 +84,6 @@ script('files', 'jquery.fileupload');
|
|||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<div id="app-content" data-active-section-id="<?php print_unescaped($_['activeSectionId']) ?>">
|
||||
<div id="app-content" <?php if (!empty($_['activeSectionId'])) { ?> data-active-section-id="<?php print_unescaped($_['activeSectionId']) ?>" <?php } if (!empty($_['activeSectionType'])) { ?> data-active-section-type="<?php print_unescaped($_['activeSectionType']) ?>" <?php } ?>>
|
||||
<?php print_unescaped($_['content']); ?>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue