X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ffbrowser.php;h=2f1181a8564b4a250700f28079e94a582d7e4110;hb=7e06127d74565b1c63ca897437ef084a0a7415e0;hp=81284d6b91ef27d654d9c078d2333ab295b41176;hpb=37405567c1a71a805b722ae56604be7ee89251ab;p=friendica.git diff --git a/mod/fbrowser.php b/mod/fbrowser.php index 81284d6b91..2f1181a856 100644 --- a/mod/fbrowser.php +++ b/mod/fbrowser.php @@ -47,7 +47,7 @@ function fbrowser_content(App $a) } // Needed to match the correct template in a module that uses a different theme than the user/site/default - $theme = Strings::sanitizeFilePathItem($_GET['theme'] ?? null); + $theme = Strings::sanitizeFilePathItem($_GET['theme'] ?? ''); if ($theme && is_file("view/theme/$theme/config.php")) { $a->setCurrentTheme($theme); } @@ -103,7 +103,8 @@ function fbrowser_content(App $a) return [ DI::baseUrl() . '/photos/' . $a->getLoggedInUserNickname() . '/image/' . $rr['resource-id'], $filename_e, - DI::baseUrl() . '/photo/' . $rr['resource-id'] . '-' . $scale . '.'. $ext + DI::baseUrl() . '/photo/' . $rr['resource-id'] . '-' . $scale . '.'. $ext, + $rr['desc'] ]; } $files = array_map("_map_files1", $r);