@@ -27,28 +27,28 @@ |
||
| 27 | 27 | |
| 28 | 28 | class SettingsPage extends PageType { |
| 29 | 29 | |
| 30 | - public function getContent(): string { |
|
| 31 | - $template = new DwooTemplate("pages/settings"); |
|
| 32 | - |
|
| 33 | - $template->assign("form_action", DomainUtils::generateURL("admin/settings")); |
|
| 34 | - $template->assign("content", ""); |
|
| 35 | - |
|
| 36 | - $categories = array( |
|
| 37 | - array( |
|
| 38 | - 'title' => "General" |
|
| 39 | - ), |
|
| 40 | - array( |
|
| 41 | - 'title' => "Mail" |
|
| 42 | - ) |
|
| 43 | - ); |
|
| 44 | - $template->assign("categories", $categories); |
|
| 45 | - |
|
| 46 | - return $template->getCode(); |
|
| 47 | - } |
|
| 48 | - |
|
| 49 | - public function listRequiredPermissions(): array { |
|
| 50 | - return array("can_see_global_settings", "can_edit_global_settings"); |
|
| 51 | - } |
|
| 30 | + public function getContent(): string { |
|
| 31 | + $template = new DwooTemplate("pages/settings"); |
|
| 32 | + |
|
| 33 | + $template->assign("form_action", DomainUtils::generateURL("admin/settings")); |
|
| 34 | + $template->assign("content", ""); |
|
| 35 | + |
|
| 36 | + $categories = array( |
|
| 37 | + array( |
|
| 38 | + 'title' => "General" |
|
| 39 | + ), |
|
| 40 | + array( |
|
| 41 | + 'title' => "Mail" |
|
| 42 | + ) |
|
| 43 | + ); |
|
| 44 | + $template->assign("categories", $categories); |
|
| 45 | + |
|
| 46 | + return $template->getCode(); |
|
| 47 | + } |
|
| 48 | + |
|
| 49 | + public function listRequiredPermissions(): array { |
|
| 50 | + return array("can_see_global_settings", "can_edit_global_settings"); |
|
| 51 | + } |
|
| 52 | 52 | |
| 53 | 53 | } |
| 54 | 54 | |