This commit is contained in:
Derick Rethans
2024-03-07 12:34:41 +00:00
parent 18d2321de2
commit 8b5cac3319
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ function _init_gettext() {
}
$tdom = textdomain('pres2');
$btex = bindtextdomain('pres2', PRES2_LOCALEDIR);
return ($loc !== false)
return ($loc !== false)
&& ($btex == realpath(PRES2_LOCALEDIR))
&& ($tdom == 'pres2');
}

View File

@@ -216,7 +216,7 @@ class Presentation
$parts = explode( '/', $this->slideFiles[$slideNr] );
$this->base = '/presentations/slides/' . join( '', array_slice( $parts, -2, 1 ) ) . '/';
$tpl = new ezcTemplate();
$tpl->send->node = $xml->documentElement;
$tpl->send->pres = $this;