Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
uw_ct_event
Commits
1dec7a74
Commit
1dec7a74
authored
May 08, 2015
by
Liam Morland
Browse files
RT-Ticket: #424260: Use asynchronous HEAD request to ping UW API server.
parent
b16cc4fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
uw_ct_event.module
View file @
1dec7a74
...
...
@@ -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
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment