fixed explode 2cd param to string

This commit is contained in:
Ian 2013-01-24 17:57:14 +01:00
parent a3061f3ab5
commit b2b415a5a0
2 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -1,4 +1,5 @@
<?php # $Id: serendipity_event_karma.php 2778 2011-09-23 12:32:28Z garvinhicking $
<?php # $Id:$
// serendipity_event_karma.php 2778 2011-09-23 12:32:28Z garvinhicking $
@serendipity_plugin_api::load_language(dirname(__FILE__));
@ -43,7 +44,7 @@ class serendipity_event_karma extends serendipity_event
$propbag->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('&amp;', '&', $eventData));
$theUri = (string)str_replace('&amp;', '&', $eventData);
$uri_parts = explode('?', $theUri);
// Try to get request parameters from eventData name
if (!empty($uri_parts[1])) {