]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ThemeDetails.php
Update doignore() in main.js to match new Item\Ignore return type
[friendica.git] / src / Module / ThemeDetails.php
index 7b53d1cfde928f89cbf9fa92b536af59d455db7b..40bfb7a87189889d1ed893cd3d114ddc637ac22b 100644 (file)
@@ -10,16 +10,16 @@ use Friendica\Core\Theme;
  */
 class ThemeDetails extends BaseModule
 {
-       public static function rawContent()
+       public static function rawContent(array $parameters = [])
        {
                if (!empty($_REQUEST['theme'])) {
                        $theme = $_REQUEST['theme'];
                        $info = Theme::getInfo($theme);
 
                        // Unfortunately there will be no translation for this string
-                       $description = defaults($info, 'description', '');
-                       $version     = defaults($info, 'version'    , '');
-                       $credits     = defaults($info, 'credits'    , '');
+                       $description = $info['description'] ?? '';
+                       $version     = $info['version']     ?? '';
+                       $credits     = $info['credits']     ?? '';
 
                        echo json_encode([
                                'img'     => Theme::getScreenshot($theme),