From ad83b449f7bdf3c3dc4479e1a0e1d78cf248027b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 26 May 2002 09:03:16 +0000 Subject: - Bugfix: found a bug with the 'create poll' title attribute. It was getting added to the tag as '0="title" 1="Add a new poll."'. Patch by Revar. --- modules/poll.module | 2 +- modules/poll/poll.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/poll.module b/modules/poll.module index 68b54eb58..1d5ade5c3 100644 --- a/modules/poll.module +++ b/modules/poll.module @@ -120,7 +120,7 @@ function poll_insert($node) { function poll_link($type) { if ($type == "menu.create" && user_access("post content")) { - $links[] = lm(t("create poll"), array("mod" => "node", "op" => "add", "type" => "poll"), "", array("title", t("Add a new poll."))); + $links[] = lm(t("create poll"), array("mod" => "node", "op" => "add", "type" => "poll"), "", array("title" => t("Add a new poll."))); } return $links ? $links : array(); diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 68b54eb58..1d5ade5c3 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -120,7 +120,7 @@ function poll_insert($node) { function poll_link($type) { if ($type == "menu.create" && user_access("post content")) { - $links[] = lm(t("create poll"), array("mod" => "node", "op" => "add", "type" => "poll"), "", array("title", t("Add a new poll."))); + $links[] = lm(t("create poll"), array("mod" => "node", "op" => "add", "type" => "poll"), "", array("title" => t("Add a new poll."))); } return $links ? $links : array(); -- cgit v1.2.3