mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-14663 "link_to_popup_window displays 'Click here....' as the link text if you pass in 0 as the link text."
Also fixing the problem in link_to_popup_window function. Test for null instead of empty.
This commit is contained in:
parent
e49906d3b1
commit
32ba2f0dd4
@ -675,7 +675,7 @@ function element_to_popup_window ($type=null, $url=null, $name=null, $linkname=n
|
||||
}
|
||||
|
||||
// get some default string, using the localized version of legacy defaults
|
||||
if (!$linkname) {
|
||||
if (is_null($linkname) || $linkname === '') {
|
||||
$linkname = get_string('clickhere');
|
||||
}
|
||||
if (!$title) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user