]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Tos.php
Merge pull request #7044 from MrPetovan/task/router
[friendica.git] / src / Module / Tos.php
index 5553fb6869a506b2b4535f23b03bbf77e7195306..6dca554b25a593c6bc44a885c380d4ab52483525 100644 (file)
@@ -53,6 +53,7 @@ class Tos extends BaseModule
                        self::getApp()->internalRedirect('profile/' . Config::get('system','singleuser'));
                }
        }
+
        /**
         * @brief generate the content of the /tos page
         *
@@ -63,9 +64,10 @@ 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 Renderer::replaceMacros($tpl, [
                                '$title' => L10n::t('Terms of Service'),