Cleanup /format pre-move

This commit is contained in:
Hypolite Petovan
2017-04-30 00:01:26 -04:00
parent f77632378b
commit 56ee734b00
85 changed files with 522 additions and 581 deletions
+18 -19
View File
@@ -1,26 +1,25 @@
<?php
use Friendica\Core\Config;
function manifest_content(App $a) {
use Friendica\Core\Config;
$tpl = get_markup_template('manifest.tpl');
function manifest_content(App $a) {
header('Content-type: application/manifest+json');
$tpl = get_markup_template('manifest.tpl');
$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();
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();
}