mirror of
https://github.com/friendica/friendica
synced 2024-12-24 02:40:16 +00:00
20043914e6
- Add `use Friendica\App;` wherever needed
26 lines
538 B
PHP
26 lines
538 B
PHP
<?php
|
|
|
|
use Friendica\App;
|
|
use Friendica\Core\Config;
|
|
|
|
function manifest_content(App $a) {
|
|
|
|
$tpl = get_markup_template('manifest.tpl');
|
|
|
|
header('Content-type: application/manifest+json');
|
|
|
|
$touch_icon = Config::get('system', 'touch_icon', 'images/friendica-128.png');
|
|
if ($touch_icon == '') {
|
|
$touch_icon = 'images/friendica-128.png';
|
|
}
|
|
|
|
$o = replace_macros($tpl, array(
|
|
'$baseurl' => App::get_baseurl(),
|
|
'$touch_icon' => $touch_icon,
|
|
'$title' => Config::get('config', 'sitename', 'Friendica'),
|
|
));
|
|
|
|
echo $o;
|
|
|
|
killme();
|
|
}
|