diff --git a/_define.php b/_define.php index 951cc67..f5b746e 100755 --- a/_define.php +++ b/_define.php @@ -29,7 +29,7 @@ $this->registerModule( /* Name */ "YASH Fork", /* Description*/ "Fork from Yet Another Syntax Highlighter. Modification: Juste one javascript called on public pages for yash3", /* Author */ "Forked and modified by Gnieark, origin: Pep and contributors", - /* Version */ '0.9.1', + /* Version */ '0.9.2', array( /* Dependencies */ 'requires' => array(array('core','2.9')), /* Permissions */ 'permissions' => 'usage,contentadmin', diff --git a/_public.php b/_public.php index 3e7935f..0fff3bf 100755 --- a/_public.php +++ b/_public.php @@ -78,17 +78,18 @@ class dcYASH ); } } - public static function publicFooterContent() - { - global $core; + public static function publicFooterContent() + { + global $core; + $core->blog->settings->addNamespace('yash3'); + if ($core->blog->settings->yash3->yash3_active){ + + $jsURL = $core->blog->url.$core->url->getBase('yash3')."/". + $core->blog->settings->yash3->yash3_concat_version. + ".js"; + + echo ''; + } + } - $core->blog->settings->addNamespace('yash3'); - if ($core->blog->settings->yash3->yash3_active){ - echo dcUtils::jsLoad( - $core->blog->url.$core->url->getBase('yash3')."/". - $core->blog->settings->yash3->yash3_concat_version. - ".js" - ); - } - } }