]> git.mxchange.org Git - friendica.git/blobdiff - mod/apps.php
Added check for MySQL driver for PDO.
[friendica.git] / mod / apps.php
index 8049b45fb3e846162b8a06ab41bfa2763b61b84a..199ce0f9188021b27e93d99391d5e2d9103d5774 100644 (file)
@@ -1,7 +1,14 @@
 <?php
 
-function apps_content(&$a) {
-       $title = t('Applications');
+function apps_content(App $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');
 
        if(count($a->apps)==0)
                notice( t('No installed applications.') . EOL);
@@ -13,6 +20,6 @@ function apps_content(&$a) {
                '$apps' => $a->apps,
        ));
 
-       
+
 
 }