Skip to content

Commit

Permalink
MDL-20445 - change the logic to get 'title' attribute for the link in…
Browse files Browse the repository at this point in the history
… navbar and navblock.
  • Loading branch information
rwijaya committed May 12, 2010
1 parent ce0738c commit bbfa9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/navigationlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ public function get_content($shorttext=false) {
* @return string
*/
public function get_title() {
if ($this->forcetitle || ($this->shorttext!==null && $this->title !== $this->shorttext) || $this->title !== $this->text) {
if ($this->forcetitle || $this->action != null){
return $this->title;
} else {
return '';
Expand Down

0 comments on commit bbfa9be

Please sign in to comment.