MDL-37574 Remove default link title from navigation items

This commit is contained in:
Andrew Robert Nicols 2013-01-28 23:30:45 +00:00 committed by Andrew Robert Nicols
parent 5e3412d94d
commit 8e3b8a617d

View file

@ -187,8 +187,6 @@ class navigation_node implements renderable {
if ($this->text === null) {
throw new coding_exception('You must set the text for the node when you create it.');
}
// Default the title to the text
$this->title = $this->text;
// Instantiate a new navigation node collection for this nodes children
$this->children = new navigation_node_collection();
}