<?php
- use Friendica\Core\Config;
- function manifest_content(App $a) {
+use Friendica\App;
+use Friendica\Core\System;
+use Friendica\Core\Config;
+use Friendica\Core\Renderer;
- $tpl = get_markup_template('manifest.tpl');
+function manifest_content(App $a) {
- header('Content-type: application/manifest+json');
+ $tpl = Renderer::getMarkupTemplate('manifest.tpl');
- $touch_icon = Config::get('system', 'touch_icon', 'images/friendica-128.png');
- if ($touch_icon == '') {
- $touch_icon = 'images/friendica-128.png';
- }
+ header('Content-type: application/manifest+json');
- $o = replace_macros($tpl, array(
- '$baseurl' => App::get_baseurl(),
- '$touch_icon' => $touch_icon,
- '$title' => Config::get('config', 'sitename', 'Friendica'),
- ));
+ $touch_icon = Config::get('system', 'touch_icon', 'images/friendica-128.png');
+ if ($touch_icon == '') {
+ $touch_icon = 'images/friendica-128.png';
+ }
- echo $o;
+ $o = Renderer::replaceMacros($tpl, [
+ '$baseurl' => System::baseUrl(),
+ '$touch_icon' => $touch_icon,
+ '$title' => Config::get('config', 'sitename', 'Friendica'),
+ ]);
- killme();
+ echo $o;
- }
-?>
+ killme();
+}