fixed explode 2cd param to string
This commit is contained in:
parent
a3061f3ab5
commit
b2b415a5a0
@ -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
|
* @param string $name
|
||||||
* @return array
|
* @return array
|
||||||
|
@ -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__));
|
@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('description', PLUGIN_KARMA_BLAHBLAH);
|
||||||
$propbag->add('stackable', false);
|
$propbag->add('stackable', false);
|
||||||
$propbag->add('author', 'Garvin Hicking, Grischa Brockhaus, Judebert, Gregor Voeltz');
|
$propbag->add('author', 'Garvin Hicking, Grischa Brockhaus, Judebert, Gregor Voeltz');
|
||||||
$propbag->add('version', '2.7');
|
$propbag->add('version', '2.8');
|
||||||
$propbag->add('requirements', array(
|
$propbag->add('requirements', array(
|
||||||
'serendipity' => '0.8',
|
'serendipity' => '0.8',
|
||||||
'smarty' => '2.6.7',
|
'smarty' => '2.6.7',
|
||||||
@ -756,7 +757,8 @@ function vote(karmaVote,karmaId) {
|
|||||||
|
|
||||||
// Hook for ajax calls
|
// Hook for ajax calls
|
||||||
case 'external_plugin':
|
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
|
// Try to get request parameters from eventData name
|
||||||
if (!empty($uri_parts[1])) {
|
if (!empty($uri_parts[1])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user