diff --git a/mod/apps.php b/mod/apps.php deleted file mode 100644 index d497ce93a..000000000 --- a/mod/apps.php +++ /dev/null @@ -1,33 +0,0 @@ - $title, - '$apps' => $apps, - ]); -} diff --git a/src/Module/Apps.php b/src/Module/Apps.php new file mode 100644 index 000000000..a23ac0a77 --- /dev/null +++ b/src/Module/Apps.php @@ -0,0 +1,40 @@ +internalRedirect(); + }; + } + } + + public static function content() + { + $apps = Nav::getAppMenu(); + + if (count($apps) == 0) { + notice(L10n::t('No installed applications.') . EOL); + } + + $tpl = Renderer::getMarkupTemplate('apps.tpl'); + return Renderer::replaceMacros($tpl, [ + '$title' => L10n::t('Applications'), + '$apps' => $apps, + ]); + } +}