From b2b415a5a0118a697123bffc552bea7a53526fb5 Mon Sep 17 00:00:00 2001 From: Ian Date: Thu, 24 Jan 2013 17:57:14 +0100 Subject: [PATCH] fixed explode 2cd param to string --- include/serendipity_smarty_class.inc.php | 2 +- .../serendipity_event_karma/serendipity_event_karma.php | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/serendipity_smarty_class.inc.php b/include/serendipity_smarty_class.inc.php index 490bf64d..77b3c535 100644 --- a/include/serendipity_smarty_class.inc.php +++ b/include/serendipity_smarty_class.inc.php @@ -371,7 +371,7 @@ class Serendipity_Smarty extends Smarty } /** - * Returns an array containing template variables + * Returns an array containing template variables- BC mode Smarty 2 -> 3 * * @param string $name * @return array diff --git a/plugins/serendipity_event_karma/serendipity_event_karma.php b/plugins/serendipity_event_karma/serendipity_event_karma.php index 382d17be..3814cdaa 100644 --- a/plugins/serendipity_event_karma/serendipity_event_karma.php +++ b/plugins/serendipity_event_karma/serendipity_event_karma.php @@ -1,4 +1,5 @@ -add('description', PLUGIN_KARMA_BLAHBLAH); $propbag->add('stackable', false); $propbag->add('author', 'Garvin Hicking, Grischa Brockhaus, Judebert, Gregor Voeltz'); - $propbag->add('version', '2.7'); + $propbag->add('version', '2.8'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', @@ -756,7 +757,8 @@ function vote(karmaVote,karmaId) { // Hook for ajax calls case 'external_plugin': - $uri_parts = explode('?', str_replace('&', '&', $eventData)); + $theUri = (string)str_replace('&', '&', $eventData); + $uri_parts = explode('?', $theUri); // Try to get request parameters from eventData name if (!empty($uri_parts[1])) {