]> git.mxchange.org Git - friendica.git/blobdiff - mod/fbrowser.php
Modified the warning message
[friendica.git] / mod / fbrowser.php
index 9c1d43cd8bc606a89c688dd81b8d145986d38ba2..9a0e9244c1cbb617511187d7273f58f853e077db 100644 (file)
@@ -10,27 +10,25 @@ require_once('include/Photo.php');
 /**
  * @param App $a
  */
-/// @TODO & is missing or App ?
-function fbrowser_content($a){
+function fbrowser_content(App $a) {
 
-       if (!local_user())
+       if (!local_user()) {
                killme();
+       }
 
-       if ($a->argc==1)
+       if ($a->argc == 1) {
                killme();
+       }
 
        $template_file = "filebrowser.tpl";
        $mode = "";
        if (x($_GET,'mode')) {
-               $template_file = "filebrowser_plain.tpl";
                $mode  = "?mode=".$_GET['mode'];
        }
 
-       //echo "<pre>"; var_dump($a->argv); killme();
-
-       switch($a->argv[1]){
+       switch ($a->argv[1]) {
                case "image":
-                       $path = array( array("", t("Photos")));
+                       $path = array(array("", t("Photos")));
                        $albums = false;
                        $sql_extra = "";
                        $sql_extra2 = " ORDER BY created DESC LIMIT 0, 10";