aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggMenuItem.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-01 02:00:25 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-01 02:00:25 +0000
commit449e23627daad8ce032411d899bd8f71db824d21 (patch)
tree9e517f755d6a57770f5b1ce7efeef0777cc39996 /engine/classes/ElggMenuItem.php
parentda93cc376e453bf656d9546df78d2f00f185bb2d (diff)
downloadelgg-449e23627daad8ce032411d899bd8f71db824d21.tar.gz
elgg-449e23627daad8ce032411d899bd8f71db824d21.tar.bz2
Fixes #3287 added documentation on non-link menu items
git-svn-id: http://code.elgg.org/elgg/trunk@8893 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes/ElggMenuItem.php')
-rw-r--r--engine/classes/ElggMenuItem.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/classes/ElggMenuItem.php b/engine/classes/ElggMenuItem.php
index 0538ed64c..3d512a08c 100644
--- a/engine/classes/ElggMenuItem.php
+++ b/engine/classes/ElggMenuItem.php
@@ -5,6 +5,8 @@
* @package Elgg.Core
* @subpackage Navigation
*
+ * To create a menu item that is not a link, pass false for $href.
+ *
* @since 1.8.0
*/
class ElggMenuItem {
@@ -443,7 +445,7 @@ class ElggMenuItem {
*/
public function getContent(array $vars = array()) {
- if ($this->href === false) {
+ if ($this->href === false || $this->href === null) {
return $this->text;
}