mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:02:54 +00:00
16 lines
389 B
PHP
16 lines
389 B
PHP
<?php
|
|
|
|
function pretheme_init(&$a) {
|
|
|
|
if($_REQUEST['theme']) {
|
|
$theme = $_REQUEST['theme'];
|
|
$info = get_theme_info($theme);
|
|
if($info) {
|
|
// unfortunately there will be no translation for this string
|
|
$desc = $info['description'] . ' ' . $info['version'];
|
|
}
|
|
else $desc = '';
|
|
echo json_encode(array('img' => get_theme_screenshot($theme), 'desc' => $desc));
|
|
}
|
|
killme();
|
|
}
|