Merge branch 'm26_MDL-46226' of https://github.com/totara/moodle into MOODLE_26_STABLE

This commit is contained in:
Dan Poltawski
2014-07-14 15:15:07 +01:00
+2 -3
View File
@@ -510,9 +510,8 @@ class pix_icon implements renderable {
if (empty($this->attributes['class'])) {
$this->attributes['class'] = 'smallicon';
}
if (!isset($this->attributes['title'])) {
$this->attributes['title'] = $this->attributes['alt'];
} else if (empty($this->attributes['title'])) {
if (empty($this->attributes['title'])) {
// Remove the title attribute if empty, we probably want to use the parent node's title
// and some browsers might overwrite it with an empty title.
unset($this->attributes['title']);