1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-18 05:09:05 +01:00

Check for installed poll plugin before retrieving poll info on topic view

This commit is contained in:
Moc 2014-05-26 12:15:30 +02:00
parent 11849b067d
commit 84cd4e2bb5

View File

@ -145,6 +145,8 @@ if ($thread->message)
//if (isset($thread->threadInfo['thread_options']['poll'])) //XXX Currently Failing - misconfigured thread-options.
//{
if(e107::isInstalled('poll'))
{
$_qry = 'SELECT * FROM `#polls` WHERE `poll_datestamp` = ' . $thread->threadId;
if($sql->gen($_qry))
{
@ -155,6 +157,7 @@ if ($thread->message)
$poll = new poll;
$pollstr = "<div class='spacer'>" . $poll->render_poll($_qry, 'forum', 'query', true) . '</div>';
}
}
//}
//Load forum templates
// FIXME - new template paths!