diff --git a/src/addon/filter/mathjaxloader/mathjaxloader.module.ts b/src/addon/filter/mathjaxloader/mathjaxloader.module.ts index 0af91a79e..5d78641ca 100644 --- a/src/addon/filter/mathjaxloader/mathjaxloader.module.ts +++ b/src/addon/filter/mathjaxloader/mathjaxloader.module.ts @@ -1,4 +1,4 @@ -// (C) Copyright 2015 Martin Dougiamas +// (C) Copyright 2015 Moodle Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/addon/filter/mathjaxloader/providers/handler.ts b/src/addon/filter/mathjaxloader/providers/handler.ts index 0b8501685..72f67ba66 100644 --- a/src/addon/filter/mathjaxloader/providers/handler.ts +++ b/src/addon/filter/mathjaxloader/providers/handler.ts @@ -1,5 +1,4 @@ - -// (C) Copyright 2015 Martin Dougiamas +// (C) Copyright 2015 Moodle Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -49,7 +48,6 @@ export class AddonFilterMathJaxLoaderHandler extends CoreFilterDefaultHandler { // List of explicit mappings and known exceptions (moodle => mathjax). protected EXPLICIT_MAPPING = { - 'cz': 'cs', 'zh-tw': 'zh-hant', 'zh-cn': 'zh-hans', }; @@ -115,7 +113,6 @@ export class AddonFilterMathJaxLoaderHandler extends CoreFilterDefaultHandler { // We cannot get the filter settings, so we cannot know if it can be used as a replacement for the TeX filter. // Assume it cannot (default value). - let hasDisplayOrInline = false; if (text.match(/\\[\[\(]/) || text.match(/\$\$/)) { // Only parse the text if there are mathjax symbols in it. @@ -170,7 +167,7 @@ export class AddonFilterMathJaxLoaderHandler extends CoreFilterDefaultHandler { /** * Check if the JS library has been loaded. * - * @return {boolean} Whether the library has been loaded. + * @return Whether the library has been loaded. */ protected jsLoaded(): boolean { return this.window.M && this.window.M.filter_mathjaxloader; diff --git a/src/core/filter/providers/helper.ts b/src/core/filter/providers/helper.ts index bc7d44fee..ee4767346 100644 --- a/src/core/filter/providers/helper.ts +++ b/src/core/filter/providers/helper.ts @@ -71,7 +71,7 @@ export class CoreFilterHelperProvider { */ getCourseModulesContexts(courseId: number, siteId?: string): Promise<{contextlevel: string, instanceid: number}[]> { - return this.courseProvider.getSections(courseId, false, true, {omitExpires: true}, siteId).then((sections) => { + return this.courseProvider.getSections(courseId, false, true, undefined, siteId).then((sections) => { const contexts: {contextlevel: string, instanceid: number}[] = []; sections.forEach((section) => {