X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=startpage%2Fstartpage.php;h=840b547e5ecc76f0c560e75118d5f5ce4f05ff69;hb=56850cacbce36281827528e2ab9ae77b991227b5;hp=872fb234d1298d5c02d469e3f987e9cd1129ead8;hpb=c71f7b0e1a7bb5ca88347b295dd3a4cc3106c5a9;p=friendica-addons.git diff --git a/startpage/startpage.php b/startpage/startpage.php index 872fb234..840b547e 100644 --- a/startpage/startpage.php +++ b/startpage/startpage.php @@ -7,6 +7,7 @@ * */ use Friendica\Core\Addon; +use Friendica\Core\L10n; use Friendica\Core\PConfig; function startpage_install() { @@ -51,16 +52,12 @@ function startpage_settings_post($a,$post) { PConfig::set(local_user(),'startpage','startpage',strip_tags(trim($_POST['startpage']))); } - /** * * Called from the Addon Setting form. * Add our own settings info to the page. * */ - - - function startpage_settings(&$a,&$s) { if(! local_user()) @@ -78,20 +75,20 @@ function startpage_settings(&$a,&$s) { /* Add some HTML to the existing form */ $s .= ''; - $s .= '

' . t('Startpage') . '

'; + $s .= '

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

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