aboutsummaryrefslogtreecommitdiff
path: root/engine/classes
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-09-10 21:30:02 -0400
committerCash Costello <cash.costello@gmail.com>2011-09-10 21:30:02 -0400
commit60b1f78d9dbc8a1d1830a5d68d6ebb27c58d3efa (patch)
treee50cde96f10750fe0829cbac6dc4886933c7d15a /engine/classes
parent7181f99b01369e4c17c830ae85c935f6648e679e (diff)
downloadelgg-60b1f78d9dbc8a1d1830a5d68d6ebb27c58d3efa.tar.gz
elgg-60b1f78d9dbc8a1d1830a5d68d6ebb27c58d3efa.tar.bz2
Fixes #3741 fixed menu code so that all links do not get empty title and confirm attributes
Diffstat (limited to 'engine/classes')
-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 cfdc2f5fa..f7a6b5c65 100644
--- a/engine/classes/ElggMenuItem.php
+++ b/engine/classes/ElggMenuItem.php
@@ -59,7 +59,7 @@ class ElggMenuItem {
/**
* @var string Tooltip
*/
- protected $title = '';
+ protected $title = false;
/**
* @var string The string to display if link is clicked
@@ -552,6 +552,8 @@ class ElggMenuItem {
if ($this->confirm) {
$vars['confirm'] = $this->confirm;
return elgg_view('output/confirmlink', $vars);
+ } else {
+ unset($vars['confirm']);
}
return elgg_view('output/url', $vars);