[PRES] [web-pres2] dericks-renderer: Fixed compat with dynamic properties
| From: | Derick Rethans | Date: | Thu, 07 Mar 2024 12:48:32 +0000 |
| Subject: | [PRES] [web-pres2] dericks-renderer: Fixed compat with dynamic properties | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-2437@lists.php.net to get a copy of this message | ||
Author: Derick Rethans (derickr)
Date: 2024-03-07T12:34:35Z
Commit: https://github.com/php/web-pres2/commit/18d2321de24713ae8783c4024d13e5c4c3c6f7ad
Raw diff: https://github.com/php/web-pres2/commit/18d2321de24713ae8783c4024d13e5c4c3c6f7ad.diff
Fixed compat with dynamic properties
Changed paths:
M messages.php
M show2.php
Diff:
diff --git a/messages.php b/messages.php
index f09b660..f9ad769 100644
--- a/messages.php
+++ b/messages.php
@@ -1,7 +1,7 @@
<?php
// interim fix until someone changes the config.php on talks.php.net
-if (!defined('PRES_LOCALE')) { define('PRES2_LOCALE', 'en'); }
+if (!defined('PRES2_LOCALE')) { define('PRES2_LOCALE', 'en'); }
if (!defined('PRES_LOCALEDIR')) { define('PRES2_LOCALEDIR',
'locale'); }
if (!defined('PRES_USE_GETTEXT')) { define('PRES2_USE_GETTEXT', false); }
// after config.php has been changed the lines above can be removed
diff --git a/show2.php b/show2.php
index e974a97..c84ff71 100644
--- a/show2.php
+++ b/show2.php
@@ -154,7 +154,7 @@ public function title( $text, $marker )
echo $pres->display( $slideNr );
}
-
+#[\AllowDynamicProperties]
class Presentation
{
private $properties;