]> git.mxchange.org Git - friendica-addons.git/blobdiff - fromapp/fromapp.php
Update obsolete App::getBaseUrl calls to DI::baseUrl
[friendica-addons.git] / fromapp / fromapp.php
index bbef3d9a667c1e4067c8874c7f969cfdc91092a3..dd48e7403cb67b91672189841dbc35fbee8a4607 100644 (file)
@@ -10,6 +10,7 @@ use Friendica\Core\Hook;
 use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Core\PConfig;
+use Friendica\DI;
 
 function fromapp_install()
 {
@@ -48,7 +49,7 @@ function fromapp_settings(&$a, &$s)
 
        /* Add our stylesheet to the page so we can make our settings look nice */
 
-       $a->page['htmlhead'] .= '<link rel="stylesheet"  type="text/css" href="' . $a->getBaseURL() . '/addon/fromapp/fromapp.css' . '" media="all" />' . "\r\n";
+       $a->page['htmlhead'] .= '<link rel="stylesheet"  type="text/css" href="' . DI::baseUrl()->get() . '/addon/fromapp/fromapp.css' . '" media="all" />' . "\r\n";
 
        /* Get the current state of our config variable */
 
@@ -69,7 +70,7 @@ function fromapp_settings(&$a, &$s)
        $s .= '<h3>' . L10n::t('FromApp Settings') . '</h3>';
        $s .= '</span>';
        $s .= '<div id="fromapp-wrapper">';
-       $s .= '<label id="fromapp-label" for="fromapp-input">' . L10n::t('The application name you would like to show your posts originating from.') . '</label>';
+       $s .= '<label id="fromapp-label" for="fromapp-input">' . L10n::t('The application name you would like to show your posts originating from. Separate different app names with a comma. A random one will then be selected for every posting.') . '</label>';
        $s .= '<input id="fromapp-input" type="text" name="fromapp-input" value="' . $fromapp . '" ' . '/>';
        $s .= '<div class="clear"></div>';