[PRES] [web-pres2] dericks-renderer: CS fixes
[email protected] (Derick Rethans) Thu, 7 Mar 2024 12:48:33 +0000
| Newsgroups | php.pres |
|---|---|
| Message-ID | <[email protected]> |
Author: Derick Rethans (derickr)
Date: 2024-03-07T12:34:41Z
Commit: https://github.com/php/web-pres2/commit/8b5cac33190525446611528c30c7904beba998c0
Raw diff: https://github.com/php/web-pres2/commit/8b5cac33190525446611528c30c7904beba998c0.diff
CS fixes
Changed paths:
M messages.php
M show2.php
Diff:
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 @@ function display( $slideNr )
$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;