MDL-20445 - change the logic to get 'title' attribute for the link in navbar and navblock.

This commit is contained in:
Rossiani Wijaya 2010-05-12 08:10:59 +00:00
parent ce0738c9e4
commit bbfa9be0f8

View File

@ -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 '';