From 8b5cac33190525446611528c30c7904beba998c0 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Thu, 7 Mar 2024 12:34:41 +0000 Subject: [PATCH] CS fixes --- messages.php | 2 +- show2.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/messages.php b/messages.php index f9ad769..d7781b6 100644 --- a/messages.php +++ b/messages.php @@ -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'); } diff --git a/show2.php b/show2.php index c84ff71..488c507 100644 --- a/show2.php +++ b/show2.php @@ -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;