Move admin/tos to src/Module

- Add Module\Admin\Tos class
- Add route for admin/tos
- Add admin aside menu entry
- Remove admin_page_tos and admin_page_tos_post from mod/admin.php
This commit is contained in:
Hypolite Petovan 2019-04-14 11:25:27 -04:00
parent 35d222f95d
commit 488e425416
4 changed files with 58 additions and 57 deletions

View file

@ -52,6 +52,9 @@ abstract class BaseAdminModule extends BaseModule
'overview' => ['admin' , L10n::t('Overview') , 'overview'],
'federation' => ['admin/federation' , L10n::t('Federation Statistics') , 'federation']
]],
'configuration' => [L10n::t('Configuration'), [
'tos' => ['admin/tos' , L10n::t('Terms of Service') , 'tos'],
]],
];
$addons_admin = [];