]> git.mxchange.org Git - friendica.git/blobdiff - mod/fbrowser.php
Remove redundant htmlentities/htmlspecialchars
[friendica.git] / mod / fbrowser.php
index 3839bcc1cdef93749db9270798dea249ac4839a5..64af908aa6b71c840c5bd43f2ab69dd5cc0ff0b5 100644 (file)
@@ -7,6 +7,7 @@
 
 use Friendica\App;
 use Friendica\Core\L10n;
+use Friendica\Core\Renderer;
 use Friendica\Core\System;
 use Friendica\Database\DBA;
 use Friendica\Object\Image;
@@ -26,7 +27,7 @@ function fbrowser_content(App $a)
 
        $template_file = "filebrowser.tpl";
        $mode = "";
-       if (x($_GET, 'mode')) {
+       if (!empty($_GET['mode'])) {
                $mode  = "?mode=".$_GET['mode'];
        }
 
@@ -93,9 +94,9 @@ function fbrowser_content(App $a)
                        }
                        $files = array_map("_map_files1", $r);
 
-                       $tpl = get_markup_template($template_file);
+                       $tpl = Renderer::getMarkupTemplate($template_file);
 
-                       $o =  replace_macros($tpl, [
+                       $o =  Renderer::replaceMacros($tpl, [
                                '$type'     => 'image',
                                '$baseurl'  => System::baseUrl(),
                                '$path'     => $path,
@@ -125,8 +126,8 @@ function fbrowser_content(App $a)
                                $files = array_map("_map_files2", $files);
 
 
-                               $tpl = get_markup_template($template_file);
-                               $o = replace_macros($tpl, [
+                               $tpl = Renderer::getMarkupTemplate($template_file);
+                               $o = Renderer::replaceMacros($tpl, [
                                        '$type'     => 'file',
                                        '$baseurl'  => System::baseUrl(),
                                        '$path'     => [ [ "", L10n::t("Files")] ],
@@ -141,7 +142,7 @@ function fbrowser_content(App $a)
                        break;
        }
 
-       if (x($_GET, 'mode')) {
+       if (!empty($_GET['mode'])) {
                return $o;
        } else {
                echo $o;