aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-06-26 08:16:19 -0400
committerCash Costello <cash.costello@gmail.com>2011-06-26 08:16:19 -0400
commit32387e6db0c56935e93314217b52eab4d9dca016 (patch)
treecc468b538fe31a26b08516755a651e860800aef9 /engine
parent2f3b6a8aebc55009f066a49b2d9aaa12dc5be008 (diff)
downloadelgg-32387e6db0c56935e93314217b52eab4d9dca016.tar.gz
elgg-32387e6db0c56935e93314217b52eab4d9dca016.tar.bz2
Fixes #3470 using rel=toggle now
Diffstat (limited to 'engine')
-rw-r--r--engine/classes/ElggMenuItem.php4
-rw-r--r--engine/lib/navigation.php2
2 files changed, 5 insertions, 1 deletions
diff --git a/engine/classes/ElggMenuItem.php b/engine/classes/ElggMenuItem.php
index cd6267ad6..1181583f2 100644
--- a/engine/classes/ElggMenuItem.php
+++ b/engine/classes/ElggMenuItem.php
@@ -504,6 +504,10 @@ class ElggMenuItem {
$vars['class'] = $this->getLinkClass();
}
+ if ($this->link_rel) {
+ $vars['rel'] = $this->link_rel;
+ }
+
if ($this->rel) {
$vars['rel'] = $this->rel;
}
diff --git a/engine/lib/navigation.php b/engine/lib/navigation.php
index b51c63b49..4b2c998a2 100644
--- a/engine/lib/navigation.php
+++ b/engine/lib/navigation.php
@@ -276,7 +276,7 @@ function elgg_river_menu_setup($hook, $type, $return, $params) {
'href' => "#comments-add-$object->guid",
'text' => elgg_view_icon('speech-bubble'),
'title' => elgg_echo('comment:this'),
- 'link_class' => "elgg-toggler",
+ 'link_rel' => 'toggle',
'priority' => 50,
);
$return[] = ElggMenuItem::factory($options);