]> git.mxchange.org Git - friendica-addons.git/blobdiff - gnot/gnot.php
Update obsolete App::getBaseUrl calls to DI::baseUrl
[friendica-addons.git] / gnot / gnot.php
index 2168f97a2f17b3b8baaccd963639810f9e755c18..46012e5eaeadcb8eddbf2e93c95cd5c3fd12aa69 100644 (file)
@@ -12,6 +12,7 @@ use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Core\PConfig;
 use Friendica\Core\Renderer;
+use Friendica\DI;
 
 function gnot_install() {
 
@@ -69,7 +70,7 @@ function gnot_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/gnot/gnot.css' . '" media="all" />' . "\r\n";
+       $a->page['htmlhead'] .= '<link rel="stylesheet"  type="text/css" href="' . DI::baseUrl()->get() . '/addon/gnot/gnot.css' . '" media="all" />' . "\r\n";
 
        /* Get the current state of our config variable */