From bbfa9be0f87e0066d8447de4e1590b45ff8a4036 Mon Sep 17 00:00:00 2001 From: Rossiani Wijaya Date: Wed, 12 May 2010 08:10:59 +0000 Subject: [PATCH] MDL-20445 - change the logic to get 'title' attribute for the link in navbar and navblock. --- lib/navigationlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/navigationlib.php b/lib/navigationlib.php index 3f806c0a25b..7cd653adffb 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -486,7 +486,7 @@ class navigation_node implements renderable { * @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 '';