Browse Source

2020.03-dev: changed ->getBaseURL to DI::baseUrl->get

master
Tobias Diekershoff 1 year ago
parent
commit
f4b5f7314d
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      typography.php

+ 2
- 1
typography.php View File

@ -7,6 +7,7 @@
* License: GPL 2.0
*/
use Friendica\DI;
use Friendica\Core\PConfig;
use Friendica\Core\Addon;
@ -66,6 +67,6 @@ function typography_render ( &$a, &$o) {
$typo->set_diacritic_language($lng);
$typo->set_hyphenation_language($lng);
$o['html'] = $typo->process($o['html']);
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . $a->getBaseurl() . '/addon/typography/style.css' . '" media="all" />';
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . DI::baseUrl()->get() . '/addon/typography/style.css' . '" media="all" />';
unset($l);
}

Loading…
Cancel
Save