@@ 120-129 (lines=10) @@ | ||
117 | } else { |
|
118 | $msg = _MD_XOOPSPOLL_ERROR_INVALID_POLLID; |
|
119 | } |
|
120 | if (null !== $url) { |
|
121 | redirect_header($url, XoopspollConstants::REDIRECT_DELAY_MEDIUM, $msg); |
|
122 | } else { |
|
123 | /* |
|
124 | redirect_header($GLOBALS['xoops']->buildUrl("pollresults.php", array('poll_id' => $poll_id)), |
|
125 | XoopspollConstants::REDIRECT_DELAY_MEDIUM, |
|
126 | $msg); |
|
127 | */ |
|
128 | redirect_header($GLOBALS['xoops']->buildUrl('viewtopic.php', array('topic_id' => $topic_id)), XoopspollConstants::REDIRECT_DELAY_MEDIUM, $msg); |
|
129 | } |
|
130 | } else { //Umfrage |
|
131 | $poll = new Umfrage($poll_id); |
|
132 | if (is_object($xoopsUser)) { |
@@ 103-107 (lines=5) @@ | ||
100 | } else { |
|
101 | $msg = _MD_XOOPSPOLL_ERROR_INVALID_POLLID; |
|
102 | } |
|
103 | if (null !== $url) { |
|
104 | redirect_header($url, XoopspollConstants::REDIRECT_DELAY_MEDIUM, $msg); |
|
105 | } else { |
|
106 | redirect_header($GLOBALS['xoops']->buildUrl('viewtopic.php', array('topic_id' => $topic_id)), XoopspollConstants::REDIRECT_DELAY_MEDIUM, $msg); |
|
107 | } |
|
108 | // irmtfan - simple url |
|
109 | redirect_header("viewtopic.php?topic_id={$topic_id}", 1, $msg); |
|
110 |
@@ 205-209 (lines=5) @@ | ||
202 | } else { |
|
203 | $msg = _MD_XOOPSPOLL_ERROR_INVALID_POLLID; |
|
204 | } |
|
205 | if ('' !== $url) { |
|
206 | redirect_header($url, XoopspollConstants::REDIRECT_DELAY_MEDIUM, $msg); |
|
207 | } else { |
|
208 | redirect_header($GLOBALS['xoops']->buildUrl('pollresults.php', array('poll_id' => $pollId)), XoopspollConstants::REDIRECT_DELAY_MEDIUM, $msg); |
|
209 | } |
|
210 | } else { |
|
211 | $pollObj = $pollHandler->get($pollId); |
|
212 | if ($pollObj->hasExpired()) { |