Commit 1dec7a74 authored by Liam Morland's avatar Liam Morland
Browse files

RT-Ticket: #424260: Use asynchronous HEAD request to ping UW API server.

parent b16cc4fe
......@@ -1413,7 +1413,7 @@ function uw_ct_event_workbench_moderation_transition($node, $previous_state, $ne
$path = trim(base_path(), '/');
if ($node->type == 'uw_event' && $base_root == 'https://uwaterloo.ca') {
if ($node->workbench_moderation['current']->current == TRUE && $node->workbench_moderation['current']->published == TRUE) {
uw_value_lists_uw_api_query('v2/ping/events.json', array('type' => 'events', 'site' => $path, 'nid' => $node->nid));
uw_value_lists_uw_api_query('v2/ping/events.json', array('type' => 'events', 'site' => $path, 'nid' => $node->nid), FALSE);
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment