1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

#1058 - Fix poll submit button in the forum when using SEF URLs

This commit is contained in:
Moc 2015-06-17 15:36:44 +02:00
parent 9dd48a02a5
commit 7704b0e5fb

View File

@ -497,7 +497,8 @@ class poll
$SUBMITBUTTON = "<input class='button btn btn-primary' type='submit' name='pollvote' value='".POLLAN_30."' />";
if (('preview' == $type || $preview == TRUE) && strpos(e_SELF, "viewtopic") === FALSE)
// disable submit when previewing the poll or when NOT viewing the poll in the forum
if (('preview' == $type || $preview == TRUE) && strpos(e_REQUEST_SELF, "forum") === FALSE)
{
$SUBMITBUTTON = "<input class='button btn e-tip' type='button' name='null' title='Disabled' value='".POLLAN_30."' />";
}