2020.03-dev: changed ->getBaseURL to DI::baseUrl->get
This commit is contained in:
parent
27bccc7c01
commit
f4b5f7314d
|
@ -7,6 +7,7 @@
|
||||||
* License: GPL 2.0
|
* License: GPL 2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Friendica\DI;
|
||||||
use Friendica\Core\PConfig;
|
use Friendica\Core\PConfig;
|
||||||
use Friendica\Core\Addon;
|
use Friendica\Core\Addon;
|
||||||
|
|
||||||
|
@ -66,6 +67,6 @@ function typography_render ( &$a, &$o) {
|
||||||
$typo->set_diacritic_language($lng);
|
$typo->set_diacritic_language($lng);
|
||||||
$typo->set_hyphenation_language($lng);
|
$typo->set_hyphenation_language($lng);
|
||||||
$o['html'] = $typo->process($o['html']);
|
$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);
|
unset($l);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue