1
0
Fork 0

Move mod/manifset to src/Module/Manifset

This commit is contained in:
Philipp Holzer 2019-04-22 12:48:40 +02:00
commit ac96e1bf3e
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
3 changed files with 36 additions and 30 deletions

View file

@ -1,28 +0,0 @@
<?php
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
use Friendica\Core\Renderer;
function manifest_content(App $a) {
$tpl = Renderer::getMarkupTemplate('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 = Renderer::replaceMacros($tpl, [
'$baseurl' => System::baseUrl(),
'$touch_icon' => $touch_icon,
'$title' => Config::get('config', 'sitename', 'Friendica'),
]);
echo $o;
exit();
}