Skip to content

Commit 5183bc5

Browse files
authored
Merge pull request #659 from jrchamp/fix/duplicate-calendar-language-string
Fix/duplicate calendar language string
2 parents e1130f4 + 02e18eb commit 5183bc5

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

db/upgrade.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,5 +1024,26 @@ function xmldb_zoom_upgrade($oldversion) {
10241024
upgrade_mod_savepoint(true, 2025050900, 'zoom');
10251025
}
10261026

1027+
if ($oldversion < 2025062600) {
1028+
// Define the SQL query to fix the inconsistent casing in the customlang stringid.
1029+
$sql = "UPDATE {tool_customlang} tc
1030+
JOIN {tool_customlang_components} tcc ON tc.componentid = tcc.id
1031+
SET tc.stringid = :newstringid
1032+
WHERE tcc.name = :componentname
1033+
AND tc.stringid = :oldstringid";
1034+
1035+
$params = [
1036+
'newstringid' => 'calendardescriptionurl',
1037+
'componentname' => 'mod_zoom',
1038+
'oldstringid' => 'calendardescriptionURL',
1039+
];
1040+
1041+
// Execute the query.
1042+
$DB->execute($sql, $params);
1043+
1044+
// Savepoint reached.
1045+
upgrade_mod_savepoint(true, 2025062600, 'zoom');
1046+
}
1047+
10271048
return true;
10281049
}

version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
defined('MOODLE_INTERNAL') || die();
2626

2727
$plugin->component = 'mod_zoom';
28-
$plugin->version = 2025052000;
28+
$plugin->version = 2025062600;
2929
$plugin->release = 'v5.4.0';
3030
$plugin->requires = 2019052000;
3131
$plugin->maturity = MATURITY_STABLE;

0 commit comments

Comments
 (0)