Commit 4d249fa2 authored by Jérôme Chauveau's avatar Jérôme Chauveau
Browse files

Locale API has changed...

parent 89d0d576
Loading
Loading
Loading
Loading
+2 −1
Changes for XML2HTMLPlugin.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@
use PKP\core\JSONMessage;
use PKP\plugins\GenericPlugin;
use PKP\file\PrivateFileManager;
use PKP\facades\Locale;

class XML2HTMLPlugin extends GenericPlugin
{
@@ -220,7 +221,7 @@ class XML2HTMLPlugin extends GenericPlugin
        // Configure the transformer
        $proc = new XSLTProcessor;
        $proc->importStyleSheet($xsl); // attach the xsl rules
        $locale = AppLocale::getLocale();
        $locale = Locale::getLocale();
        $proc->setParameter('', 'lang', $locale);
        return $proc->transformToXML($xml);