try to fix #259
This commit is contained in:
parent
682831f358
commit
c6625a6402
|
@ -1,3 +1,5 @@
|
|||
2.15: Use static function declaration
|
||||
|
||||
2.14: Added additional backend markup for 2.0 backend (yellowled)
|
||||
|
||||
Propagate $smarty.env.staticpage_pagetitle (and the others) so that it can be used in entries.tpl
|
|
@ -15,7 +15,7 @@ include dirname(__FILE__) . '/lang_en.inc.php';
|
|||
class serendipity_common_pollbox {
|
||||
var $poll = array();
|
||||
|
||||
function poll($pollid = null) {
|
||||
static function poll($pollid = null) {
|
||||
$poll = new serendipity_common_pollbox;
|
||||
$poll->setPoll($poll->fetchPoll($pollid));
|
||||
$poll->showPoll($pollid);
|
||||
|
@ -96,7 +96,7 @@ class serendipity_common_pollbox {
|
|||
$this->poll = $poll;
|
||||
}
|
||||
|
||||
function &fetchPoll($cid = null) {
|
||||
static function fetchPoll($cid = null) {
|
||||
global $serendipity;
|
||||
|
||||
$result = array();
|
||||
|
|
|
@ -20,7 +20,7 @@ class serendipity_event_pollbox extends serendipity_event {
|
|||
$propbag->add('configuration', array('permalink', "articleformat", "pagetitle", "articleformattitle"));
|
||||
$propbag->add('author', 'Garvin Hicking, Matthias Mees');
|
||||
$propbag->add('groups', array('STATISTICS'));
|
||||
$propbag->add('version', '2.14.1');
|
||||
$propbag->add('version', '2.15');
|
||||
$propbag->add('requirements', array(
|
||||
'serendipity' => '0.8',
|
||||
'smarty' => '2.6.7',
|
||||
|
|
|
@ -14,7 +14,7 @@ class serendipity_plugin_pollbox extends serendipity_plugin {
|
|||
$propbag->add('configuration', array('title'));
|
||||
$propbag->add('author', 'Garvin Hicking, Evan Nemerson');
|
||||
$propbag->add('stackable', false);
|
||||
$propbag->add('version', '2.08.1');
|
||||
$propbag->add('version', '2.15');
|
||||
$propbag->add('groups', array('STATISTICS'));
|
||||
$this->dependencies = array('serendipity_event_pollbox' => 'keep');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue