mirror of
https://github.com/friendica/friendica
synced 2024-12-27 14:42:19 +00:00
7a9456d5ac
Fixed some stuff: - converted some files from DOS to Uni* (CRLF -> LF) - removed trailing white-spaces Signed-off-by: Roland Häder <roland@mxchange.org>
24 lines
542 B
PHP
24 lines
542 B
PHP
<?php
|
|
|
|
use Friendica\App;
|
|
|
|
function pretheme_init(App $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'];
|
|
$version = $info['version'];
|
|
$credits = $info['credits'];
|
|
} else {
|
|
$desc = '';
|
|
$version = '';
|
|
$credits = '';
|
|
}
|
|
echo json_encode(array('img' => get_theme_screenshot($theme), 'desc' => $desc, 'version' => $version, 'credits' => $credits));
|
|
}
|
|
|
|
killme();
|
|
}
|