aboutsummaryrefslogtreecommitdiff
path: root/engine/classes
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-18 21:11:00 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-18 21:11:00 +0000
commitd928588805375e7190ab393e2def555b39701a27 (patch)
treebfbb0313a40de82a6c4ee0f1bb25cd2c66e2259f /engine/classes
parent2408cc5c69209350a350246e260de494720eb773 (diff)
downloadelgg-d928588805375e7190ab393e2def555b39701a27.tar.gz
elgg-d928588805375e7190ab393e2def555b39701a27.tar.bz2
Fixes #3358. Renamed menu's class to link_class and documented possible problems with passing <a> tags in the text option.
git-svn-id: http://code.elgg.org/elgg/trunk@9005 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes')
-rw-r--r--engine/classes/ElggMenuItem.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/classes/ElggMenuItem.php b/engine/classes/ElggMenuItem.php
index bf6cf2edc..61dbf539e 100644
--- a/engine/classes/ElggMenuItem.php
+++ b/engine/classes/ElggMenuItem.php
@@ -123,9 +123,9 @@ class ElggMenuItem {
unset($options['context']);
}
- if (isset($options['class'])) {
- $item->setLinkClass($options['class']);
- unset($options['class']);
+ if (isset($options['link_class'])) {
+ $item->setLinkClass($options['link_class']);
+ unset($options['link_class']);
}
if (isset($options['item_class'])) {
@@ -459,7 +459,7 @@ class ElggMenuItem {
if ($this->href) {
$vars['href'] = $this->href;
}
-
+
if ($this->linkClass) {
$vars['class'] = $this->getLinkClass();
}