X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FModule%2FTos.php;h=6dca554b25a593c6bc44a885c380d4ab52483525;hb=f19136905ffe104e12484aba5bca5adeefa4b133;hp=db8b55885ae2829aedb3754daf947106f275dc43;hpb=9c9ebfc7c97016881d9ad2bb3c3b54a5640d2f08;p=friendica.git diff --git a/src/Module/Tos.php b/src/Module/Tos.php index db8b55885a..6dca554b25 100644 --- a/src/Module/Tos.php +++ b/src/Module/Tos.php @@ -11,6 +11,7 @@ namespace Friendica\Module; use Friendica\BaseModule; use Friendica\Core\Config; use Friendica\Core\L10n; +use Friendica\Core\Renderer; use Friendica\Core\System; use Friendica\Content\Text\BBCode; @@ -52,6 +53,7 @@ class Tos extends BaseModule self::getApp()->internalRedirect('profile/' . Config::get('system','singleuser')); } } + /** * @brief generate the content of the /tos page * @@ -62,11 +64,12 @@ class Tos extends BaseModule * This privacy statement has fixed text, so it can be translated easily. * * @return string - **/ + * @throws \Friendica\Network\HTTPException\InternalServerErrorException + */ public static function content() { - $tpl = get_markup_template('tos.tpl'); + $tpl = Renderer::getMarkupTemplate('tos.tpl'); if (Config::get('system', 'tosdisplay')) { - return replace_macros($tpl, [ + return Renderer::replaceMacros($tpl, [ '$title' => L10n::t('Terms of Service'), '$tostext' => BBCode::convert(Config::get('system', 'tostext')), '$displayprivstatement' => Config::get('system', 'tosprivstatement'),