X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FTos.php;h=2bc3393b2362f65d634d0dcb8e2abbadbf302a33;hb=aa0b485f3dca72c5448076e913fa54d948cd7731;hp=436a143f0fc35d93bef0d31623e8fb3ef2832398;hpb=d6efc901946c91cf26a4436c4b58b1636e4bc9c9;p=friendica.git diff --git a/src/Module/Tos.php b/src/Module/Tos.php index 436a143f0f..2bc3393b23 100644 --- a/src/Module/Tos.php +++ b/src/Module/Tos.php @@ -1,15 +1,27 @@ . * - * This module displays the Terms of Service for a node, if the admin - * wants them to be displayed. */ namespace Friendica\Module; use Friendica\BaseModule; -use Friendica\Core\Config; use Friendica\Core\Renderer; use Friendica\Content\Text\BBCode; use Friendica\DI; @@ -48,8 +60,8 @@ class Tos extends BaseModule **/ public static function init(array $parameters = []) { - if (strlen(Config::get('system','singleuser'))) { - DI::baseUrl()->redirect('profile/' . Config::get('system','singleuser')); + if (strlen(DI::config()->get('system','singleuser'))) { + DI::baseUrl()->redirect('profile/' . DI::config()->get('system','singleuser')); } } @@ -67,11 +79,11 @@ class Tos extends BaseModule */ public static function content(array $parameters = []) { $tpl = Renderer::getMarkupTemplate('tos.tpl'); - if (Config::get('system', 'tosdisplay')) { + if (DI::config()->get('system', 'tosdisplay')) { return Renderer::replaceMacros($tpl, [ '$title' => DI::l10n()->t('Terms of Service'), - '$tostext' => BBCode::convert(Config::get('system', 'tostext')), - '$displayprivstatement' => Config::get('system', 'tosprivstatement'), + '$tostext' => BBCode::convert(DI::config()->get('system', 'tostext')), + '$displayprivstatement' => DI::config()->get('system', 'tosprivstatement'), '$privstatementtitle' => DI::l10n()->t('Privacy Statement'), '$privacy_operate' => DI::l10n()->t('At the time of registration, and for providing communications between the user account and their contacts, the user has to provide a display name (pen name), an username (nickname) and a working email address. The names will be accessible on the profile page of the account by any visitor of the page, even if other profile details are not displayed. The email address will only be used to send the user notifications about interactions, but wont be visibly displayed. The listing of an account in the node\'s user directory or the global user directory is optional and can be controlled in the user settings, it is not necessary for communication.'), '$privacy_distribute' => DI::l10n()->t('This data is required for communication and is passed on to the nodes of the communication partners and is stored there. Users can enter additional private data that may be transmitted to the communication partners accounts.'),