MDL-20445 - change the logic to get 'title' attribute for the link in navbar and navblock.
This commit is contained in:
@@ -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 '';
|
||||
|
||||
Reference in New Issue
Block a user