X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fpretheme.php;h=4584cb29e2564cd31963438d08b295d09c140ecb;hb=be067bcf9660cb7451b00657b5f826c0b16a888f;hp=0efa587d8ce3b8f01b54205d205a8f412a289bc3;hpb=4c585f759f5c2662b2d761adccdf2c6dafd31249;p=friendica.git diff --git a/mod/pretheme.php b/mod/pretheme.php index 0efa587d8c..4584cb29e2 100644 --- a/mod/pretheme.php +++ b/mod/pretheme.php @@ -7,10 +7,16 @@ function pretheme_init(&$a) { $info = get_theme_info($theme); if($info) { // unfortunately there will be no translation for this string - $desc = $info['description'] . ' ' . $info['version']; + $desc = $info['description']; + $version = $info['version']; + $credits = $info['credits']; } - else $desc = ''; - echo json_encode(array('img' => get_theme_screenshot($theme), 'desc' => $desc)); + else { + $desc = ''; + $version = ''; + $credits = ''; + } + echo json_encode(array('img' => get_theme_screenshot($theme), 'desc' => $desc, 'version' => $version, 'credits' => $credits)); } killme(); }