[PRES] [web-pres2] dericks-renderer: Fixed compat with dynamic properties
[email protected] (Derick Rethans) Thu, 7 Mar 2024 12:48:32 +0000
| Newsgroups | php.pres |
|---|---|
| Message-ID | <[email protected]> |
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;