-function apps_content(&$a) {
- $privateaddons = get_config('config','private_addons');
- if ($privateaddons === "1") {
- if((! (local_user()))) {
- info( t("You must be logged in to use addons. "));
- return;};
-}
-
- $title = t('Applications');
+function apps_content(App $a)
+{
+ $privateaddons = Config::get('config', 'private_addons');
+ if ($privateaddons === "1") {
+ if (! local_user()) {
+ info(L10n::t('You must be logged in to use addons. '));
+ return;
+ };
+ }