mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-20445 - change the logic to get 'title' attribute for the link in navbar and navblock.
This commit is contained in:
parent
ce0738c9e4
commit
bbfa9be0f8
@ -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 '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user