Fixes MDL-12539 "Help link text for all admin/user filters are broken". Merged.
This commit is contained in:
+5
-1
@@ -5802,7 +5802,7 @@ function editorhelpbutton(){
|
||||
* @return string
|
||||
* @todo Finish documenting this function
|
||||
*/
|
||||
function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=false, $text='', $return=false,
|
||||
function helpbutton ($page, $title, $module='moodle', $image=true, $linktext=false, $text='', $return=false,
|
||||
$imagetext='') {
|
||||
global $CFG, $COURSE;
|
||||
|
||||
@@ -5817,6 +5817,10 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
|
||||
$module = 'moodle';
|
||||
}
|
||||
|
||||
if ($title == '' && $linktext == '') {
|
||||
debugging('Error in call to helpbutton function: at least one of $title and $linktext is required');
|
||||
}
|
||||
|
||||
// Warn users about new window for Accessibility
|
||||
$tooltip = get_string('helpprefix2', '', trim($title, ". \t")) .' ('.get_string('newwindow').')';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user