X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=startpage%2Fstartpage.php;h=9192b5a8e067652a747bd022437e8cdf568a46cc;hb=86b2d830a5da62f90c22b5d3f15921a60de25f37;hp=21adae4be7c36d1ffb4254494836f4be6e793899;hpb=ea3a9052d83f8ea99cee8438022be0b022a24cc1;p=friendica-addons.git diff --git a/startpage/startpage.php b/startpage/startpage.php index 21adae4b..9192b5a8 100644 --- a/startpage/startpage.php +++ b/startpage/startpage.php @@ -7,9 +7,6 @@ * */ use Friendica\Core\Hook; -use Friendica\Core\L10n; -use Friendica\Core\PConfig; -use Friendica\Core\System; use Friendica\DI; function startpage_install() { @@ -54,7 +51,7 @@ function startpage_settings_post($a, $post) } if (!empty($_POST['startpage-submit'])) { - PConfig::set(local_user(), 'startpage', 'startpage', strip_tags(trim($_POST['startpage']))); + DI::pConfig()->set(local_user(), 'startpage', 'startpage', strip_tags(trim($_POST['startpage']))); } } @@ -81,19 +78,19 @@ function startpage_settings(&$a, &$s) /* Add some HTML to the existing form */ $s .= ''; - $s .= '

' . L10n::t('Startpage') . '

'; + $s .= '

' . DI::l10n()->t('Startpage') . '

'; $s .= '
'; $s .= ''; + $s .= '
'; }