diff options
author | Valentin Popov <info@valentineus.link> | 2018-03-12 23:10:56 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-03-12 23:10:56 +0300 |
commit | af4224e8dbfe730ddd822207836702b274ba8f85 (patch) | |
tree | d81a7aa5b24d7190963c71a0e6a149ba5830c4f7 /lib.php | |
parent | 79fe101e1b7fc311146914026c0369958e4b68c5 (diff) | |
download | local_webhooks-af4224e8dbfe730ddd822207836702b274ba8f85.tar.xz local_webhooks-af4224e8dbfe730ddd822207836702b274ba8f85.zip |
Renaming internal functions
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'lib.php')
-rw-r--r-- | lib.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -151,7 +151,7 @@ function local_webhooks_create_record($record) { /* Adding entries */ $transaction = $DB->start_delegated_transaction(); $serviceid = $DB->insert_record(LOCAL_WEBHOOKS_TABLE_SERVICES, $record, true, false); - local_webhooks_insert_events($serviceid, $record->events); + local_webhooks_insert_events_for_service($serviceid, $record->events); $transaction->allow_commit(); /* Clear the plugin cache */ @@ -183,7 +183,7 @@ function local_webhooks_update_record($record) { /* Update records */ $transaction = $DB->start_delegated_transaction(); $result = $DB->update_record(LOCAL_WEBHOOKS_TABLE_SERVICES, $record, false); - local_webhooks_insert_events($record->id, $record->events); + local_webhooks_insert_events_for_service($record->id, $record->events); $transaction->allow_commit(); /* Clear the plugin cache */ |