Avoid use of old array syntax (#331)

This commit is contained in:
Mark Nelson 2020-03-10 17:29:37 +01:00
parent 1c9f4786fb
commit ad7d4099b4

View file

@ -152,7 +152,7 @@ function xmldb_customcert_upgrade($oldversion) {
if ($dbman->index_exists($table, $index)) {
$dbman->drop_index($table, $index);
}
$key = new xmldb_key('templateid', XMLDB_KEY_FOREIGN, array('templateid'), 'customcert_templates', array('id'));
$key = new xmldb_key('templateid', XMLDB_KEY_FOREIGN, ['templateid'], 'customcert_templates', ['id']);
$dbman->add_key($table, $key);
$table = new xmldb_table('customcert_pages');
@ -160,7 +160,7 @@ function xmldb_customcert_upgrade($oldversion) {
if ($dbman->index_exists($table, $index)) {
$dbman->drop_index($table, $index);
}
$key = new xmldb_key('templateid', XMLDB_KEY_FOREIGN, array('templateid'), 'customcert_templates', array('id'));
$key = new xmldb_key('templateid', XMLDB_KEY_FOREIGN, ['templateid'], 'customcert_templates', ['id']);
$dbman->add_key($table, $key);
upgrade_mod_savepoint(true, 2018120305, 'customcert');