mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-46867' of git://github.com/timhunt/moodle
This commit is contained in:
commit
d3ebc21fdf
@ -41,15 +41,12 @@ class filter_glossary extends moodle_text_filter {
|
|||||||
protected $cacheconceptlist = null;
|
protected $cacheconceptlist = null;
|
||||||
|
|
||||||
public function setup($page, $context) {
|
public function setup($page, $context) {
|
||||||
// This only requires execution once per request.
|
if ($page->requires->should_create_one_time_item_now('filter_glossary_autolinker')) {
|
||||||
static $jsinitialised = false;
|
|
||||||
if (empty($jsinitialised)) {
|
|
||||||
$page->requires->yui_module(
|
$page->requires->yui_module(
|
||||||
'moodle-filter_glossary-autolinker',
|
'moodle-filter_glossary-autolinker',
|
||||||
'M.filter_glossary.init_filter_autolinking',
|
'M.filter_glossary.init_filter_autolinking',
|
||||||
array(array('courseid' => 0)));
|
array(array('courseid' => 0)));
|
||||||
$page->requires->strings_for_js(array('ok'), 'moodle');
|
$page->requires->strings_for_js(array('ok'), 'moodle');
|
||||||
$jsinitialised = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user