Merge branch 'MDL-50935-master-2' of https://github.com/junpataleta/moodle

This commit is contained in:
Sara Arjona 2022-11-09 16:01:12 +01:00
commit 1ba4e0100e
3 changed files with 12 additions and 2 deletions

View File

@ -38,5 +38,15 @@ function xmldb_atto_equation_upgrade($oldversion) {
// Automatically generated Moodle v4.0.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2022110700) {
$oldmatrix = '\left| \begin{matrix} a_1 & a_2 \\ a_3 & a_4 \end{matrix} \right|';
$fixedmatrix = '\left| \begin{matrix} a_1 & a_2 \\\\ a_3 & a_4 \end{matrix} \right|';
$config = get_config('atto_equation', 'librarygroup4');
$newdefault = str_replace($oldmatrix, $fixedmatrix, $config);
set_config('librarygroup4', $newdefault, 'atto_equation');
// Atto equation savepoint reached.
upgrade_plugin_savepoint(true, 2022110700, 'atto', 'equation');
}
return true;
}

View File

@ -159,7 +159,7 @@ if ($ADMIN->fulltree) {
(a)
[a]
\lbrace{a}\rbrace
\left| \begin{matrix} a_1 & a_2 \\ a_3 & a_4 \end{matrix} \right|
\left| \begin{matrix} a_1 & a_2 \\\\ a_3 & a_4 \end{matrix} \right|
\frac{a}{b+c}
\vec{a}
\binom {a} {b}

View File

@ -24,6 +24,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2022041900; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2022110700; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2022041200; // Requires this Moodle version.
$plugin->component = 'atto_equation'; // Full name of the plugin (used for diagnostics).