Skip to content

Commit

Permalink
MDL-63991 badges: Fix links on badge render
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyserver committed Nov 13, 2018
1 parent 208950c commit 65ffd0a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions badges/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ public function print_badge_overview($badge, $context) {
$dl[get_string('description', 'badges')] = $badge->description;
$dl[get_string('createdon', 'search')] = userdate($badge->timecreated);
$dl[get_string('badgeimage', 'badges')] = print_badge_image($badge, $context, 'large');
$dl[get_string('imageauthorname', 'badges')] =
html_writer::link($badge->imageauthorname, $badge->imageauthorname, array('target' => '_blank'));
$dl[get_string('imageauthorname', 'badges')] = $badge->imageauthorname;
$dl[get_string('imageauthoremail', 'badges')] =
html_writer::tag('a', $badge->imageauthoremail, array('href' => 'mailto:' . $badge->imageauthoremail));
$dl[get_string('imageauthorurl', 'badges')] =
Expand Down Expand Up @@ -352,8 +351,7 @@ protected function render_issued_badge(issued_badge $ibadge) {
$dl[get_string('version', 'badges')] = $badge->version;
$dl[get_string('language')] = $languages[$badge->language];
$dl[get_string('description', 'badges')] = $badge->description;
$dl[get_string('imageauthorname', 'badges')] =
html_writer::link($badge->imageauthorname, $badge->imageauthorname, array('target' => '_blank'));
$dl[get_string('imageauthorname', 'badges')] = $badge->imageauthorname;
$dl[get_string('imageauthoremail', 'badges')] =
html_writer::tag('a', $badge->imageauthoremail, array('href' => 'mailto:' . $badge->imageauthoremail));
$dl[get_string('imageauthorurl', 'badges')] =
Expand Down Expand Up @@ -1048,7 +1046,8 @@ protected function print_badge_endorsement(badge $badge) {
$output .= $this->heading(get_string('endorsement', 'badges'), 3);
if (!empty($endorsement)) {
$dl[get_string('issuername', 'badges')] = $endorsement->issuername;
$dl[get_string('issueremail', 'badges')] = $endorsement->issueremail;
$dl[get_string('issueremail', 'badges')] =
html_writer::tag('a', $endorsement->issueremail, array('href' => 'mailto:' . $endorsement->issueremail));
$dl[get_string('issuerurl', 'badges')] = html_writer::link($endorsement->issuerurl, $endorsement->issuerurl,
array('target' => '_blank'));
$dl[get_string('dateawarded', 'badges')] = date('c', $endorsement->dateissued);
Expand Down

0 comments on commit 65ffd0a

Please sign in to comment.