outpurenderer MDL-24560 $OUTPUT->doc_link() support icon only (no link text) but trigger warning and wrong xhtml_strict code => fixed

This commit is contained in:
jerome mouneyrac 2010-10-07 04:04:38 +00:00
parent fe561379e4
commit 010e02b46d

View File

@ -1314,7 +1314,7 @@ class core_renderer extends renderer_base {
* @param string $text The text to be displayed for the link
* @return string
*/
public function doc_link($path, $text) {
public function doc_link($path, $text = '') {
global $CFG;
$icon = $this->pix_icon('docs', $text, 'moodle', array('class'=>'iconhelp'));