aboutsummaryrefslogtreecommitdiff
path: root/engine/classes
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-24 01:49:52 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-24 01:49:52 +0000
commitca2d3d64b45e5e69843a090e5e7da3b3ac19f3ac (patch)
treee5d23b035246f3708452c251e3876c4e9ef3ba05 /engine/classes
parent2aa481c0ac877eacf643cd71c5701c1c271140da (diff)
downloadelgg-ca2d3d64b45e5e69843a090e5e7da3b3ac19f3ac.tar.gz
elgg-ca2d3d64b45e5e69843a090e5e7da3b3ac19f3ac.tar.bz2
using getContent() in menu system in preparation for supporting non-links
git-svn-id: http://code.elgg.org/elgg/trunk@8457 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes')
-rw-r--r--engine/classes/ElggMenuItem.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/classes/ElggMenuItem.php b/engine/classes/ElggMenuItem.php
index 8bff0abba..58c26aa22 100644
--- a/engine/classes/ElggMenuItem.php
+++ b/engine/classes/ElggMenuItem.php
@@ -401,13 +401,13 @@ class ElggMenuItem {
}
/**
- * Get the menu link
+ * Get the menu item content (usually a link)
*
- * @params array $vars Options to pass to output/url
+ * @params array $vars Options to pass to output/url if a link
*
* @return string
*/
- public function getLink(array $vars = array()) {
+ public function getContent(array $vars = array()) {
$vars['text'] = $this->text;
if ($this->href) {
$vars['href'] = $this->href;