]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Tos.php
Merge remote-tracking branch 'upstream/develop' into api4
[friendica.git] / src / Module / Tos.php
index 1c91641f531537a6164b865e28313c45f5243b84..8357ead18a91af3366d760c6147a6e62788a0967 100644 (file)
@@ -60,7 +60,7 @@ class Tos extends BaseModule
         * dealings with their own node so a TOS is not necessary.
         *
         **/
-       public static function init()
+       public function init()
        {
                if (strlen(DI::config()->get('system','singleuser'))) {
                        DI::baseUrl()->redirect('profile/' . DI::config()->get('system','singleuser'));
@@ -79,7 +79,7 @@ class Tos extends BaseModule
         * @return string
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
-       public static function content() {
+       public function content(): string {
                $tpl = Renderer::getMarkupTemplate('tos.tpl');
                if (DI::config()->get('system', 'tosdisplay')) {
                        return Renderer::replaceMacros($tpl, [