It's 'polls', not 'poll' (since Geeklog 1.4.0) and shouldn't really be referred to in non-plugin code
1.1 --- a/system/lib-comment.php Sat Nov 14 15:51:17 2009 +0100
1.2 +++ b/system/lib-comment.php Sat Nov 14 18:51:37 2009 +0100
1.3 @@ -205,7 +205,7 @@
1.4 *
1.5 * @param array &$comments Database result set of comments to be printed
1.6 * @param string $mode 'flat', 'threaded', etc
1.7 -* @param string $type Type of item (article, poll, etc.)
1.8 +* @param string $type Type of item (article, polls, etc.)
1.9 * @param string $order How to order the comments 'ASC' or 'DESC'
1.10 * @param boolean $delete_option if current user can delete comments
1.11 * @param boolean $preview Preview display (for edit) or not
1.12 @@ -566,7 +566,7 @@
1.13 *
1.14 * @param string $sid ID for item to show comments for
1.15 * @param string $title Title of item
1.16 -* @param string $type Type of item (article, poll, etc.)
1.17 +* @param string $type Type of item (article, polls, etc.)
1.18 * @param string $order How to order the comments 'ASC' or 'DESC'
1.19 * @param string $mode comment mode (nested, flat, etc.)
1.20 * @param int $pid id of parent comment
1.21 @@ -1229,7 +1229,7 @@
1.22 * @param $uid int user id
1.23 * @param $username string optional name of anonymous user
1.24 * @param $ipaddress string poster's IP address
1.25 -* @param $type string type of comment ('article', 'poll', ...)
1.26 +* @param $type string type of comment ('article', 'polls', ...)
1.27 * @param $cid int comment id (or 0 when in submission queue)
1.28 * @return boolean true if successfully sent, otherwise false
1.29 *
1.30 @@ -1270,7 +1270,7 @@
1.31 $mailbody = "$LANG03[16]: $title\n"
1.32 . "$LANG03[5]: $author\n";
1.33
1.34 - if (($type != 'article') && ($type != 'poll')) {
1.35 + if ($type != 'article') {
1.36 $mailbody .= "$LANG09[5]: $type\n";
1.37 }
1.38
1.39 @@ -1308,7 +1308,7 @@
1.40 * for the specified $type and $sid.
1.41 *
1.42 * @author Vincent Furia, vinny01 AT users DOT sourceforge DOT net
1.43 - * @param string $type article, poll, or plugin identifier
1.44 + * @param string $type article, or plugin identifier
1.45 * @param string $sid id of object comment belongs to
1.46 * @param int $cid Comment ID
1.47 * @return string 0 indicates success, >0 identifies problem
1.48 @@ -1360,7 +1360,7 @@
1.49 * Display form to report abusive comment.
1.50 *
1.51 * @param string $cid comment id
1.52 -* @param string $type type of comment ('article', 'poll', ...)
1.53 +* @param string $type type of comment ('article', 'polls', ...)
1.54 * @return string HTML for the form (or error message)
1.55 *
1.56 */
1.57 @@ -1439,7 +1439,7 @@
1.58 * Send report about abusive comment
1.59 *
1.60 * @param string $cid comment id
1.61 -* @param string $type type of comment ('article', 'poll', ...)
1.62 +* @param string $type type of comment ('article', 'polls', ...)
1.63 * @return string Meta refresh or HTML for error message
1.64 *
1.65 */
1.66 @@ -1495,7 +1495,7 @@
1.67 . "$LANG03[16]: $title\n"
1.68 . "$LANG03[5]: $author\n";
1.69
1.70 - if (($type != 'article') && ($type != 'poll')) {
1.71 + if ($type != 'article') {
1.72 $mailbody .= "$LANG09[5]: $type\n";
1.73 }
1.74
1.75 @@ -1611,7 +1611,7 @@
1.76 * @author Jared Wenerd, wenerd87 AT gmail DOT com
1.77 * @param string $comment comment text
1.78 * @param string $postmode ('html', 'plaintext', ...)
1.79 - * @param string $type Type of item (article, poll, etc.)
1.80 + * @param string $type Type of item (article, polls, etc.)
1.81 * @param bool $edit if true append edit tag
1.82 * @param int $cid commentid if editing comment (for proper sig)
1.83 * @return string of comment text