Avoid use of old array syntax (#331)
This commit is contained in:
parent
1c9f4786fb
commit
ad7d4099b4
1 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue