Merge branch 'MDL-48960-master' of git://github.com/danpoltawski/moodle

This commit is contained in:
David Monllao 2015-02-10 11:12:18 +08:00
commit 4b408c3afe
2 changed files with 2 additions and 2 deletions

View File

@ -991,7 +991,7 @@ function calendar_filter_controls_element(moodle_url $url, $type) {
$str = get_string('show'.$typeforhumans.'events', 'calendar');
}
$content = html_writer::start_tag('li', array('class' => 'calendar_event'));
$content .= html_writer::start_tag('a', array('href' => $url));
$content .= html_writer::start_tag('a', array('href' => $url, 'rel' => 'nofollow'));
$content .= html_writer::tag('span', $icon, array('class' => $class));
$content .= html_writer::tag('span', $str, array('class' => 'eventname'));
$content .= html_writer::end_tag('a');

View File

@ -3399,7 +3399,7 @@ EOD;
$linkurl = new moodle_url('/theme/switchdevice.php', array('url' => $this->page->url, 'device' => $devicetype, 'sesskey' => sesskey()));
$content = html_writer::start_tag('div', array('id' => 'theme_switch_link'));
$content .= html_writer::link($linkurl, $linktext);
$content .= html_writer::link($linkurl, $linktext, array('rel' => 'nofollow'));
$content .= html_writer::end_tag('div');
return $content;