Commit ad83b449 authored by Dries's avatar Dries
Browse files

- Bugfix: found a bug with the 'create poll' title attribute.  It was
  getting added to the <a> tag as '0="title" 1="Add a new poll."'.

  Patch by Revar.
parent e426775f
......@@ -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();
......
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment