]> git.mxchange.org Git - friendica.git/blob - mod/pretheme.php
fix account_type
[friendica.git] / mod / pretheme.php
1 <?php
2
3 function pretheme_init(&$a) {
4         
5         if($_REQUEST['theme']) {
6                 $theme = $_REQUEST['theme'];
7                 $info = get_theme_info($theme);
8                 if($info) {
9                         // unfortunately there will be no translation for this string
10                         $desc = $info['description'];
11                         $version = $info['version'];
12                         $credits = $info['credits'];
13                 }
14                 else {
15                         $desc = '';
16                         $version = '';
17                         $credits = '';
18                 }
19                 echo json_encode(array('img' => get_theme_screenshot($theme), 'desc' => $desc, 'version' => $version, 'credits' => $credits));
20         }
21         killme();
22 }