Skip to content

Commit

Permalink
Merge branch 'm28_MDL-46226' of https://github.com/totara/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Jul 14, 2014
2 parents d3181cc + 40ebfae commit 388debc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/outputcomponents.php
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,8 @@ public function __construct($pix, $alt, $component='moodle', array $attributes =
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']);
Expand Down

0 comments on commit 388debc

Please sign in to comment.