diff options
| author | Cash Costello <cash.costello@gmail.com> | 2011-09-10 21:30:02 -0400 | 
|---|---|---|
| committer | Cash Costello <cash.costello@gmail.com> | 2011-09-10 21:30:02 -0400 | 
| commit | 60b1f78d9dbc8a1d1830a5d68d6ebb27c58d3efa (patch) | |
| tree | e50cde96f10750fe0829cbac6dc4886933c7d15a /engine/classes/ElggMenuItem.php | |
| parent | 7181f99b01369e4c17c830ae85c935f6648e679e (diff) | |
| download | elgg-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/ElggMenuItem.php')
| -rw-r--r-- | engine/classes/ElggMenuItem.php | 4 | 
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);  | 
