mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
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:
parent
fe561379e4
commit
010e02b46d
@ -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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user