mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
small fix to mathjax.
This commit is contained in:
parent
3e1ec6f8b0
commit
54d98689fa
6 changed files with 3 additions and 310 deletions
|
@ -48,7 +48,9 @@ function mathjax_settings (&$a, &$s) {
|
|||
function mathjax_page_header($a, &$b) {
|
||||
// if the visitor of the page is not a local_user, use MathJax
|
||||
// otherwise check the users settings.
|
||||
$url = get_config ('mathjax','baseurl','http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML');
|
||||
$url = get_config ('mathjax','baseurl');
|
||||
if(! $url)
|
||||
$url = 'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML';
|
||||
if (! local_user()) {
|
||||
$b .= '<script type="text/javascript" src="'.$url.'"></script>';
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue