Skip to content
Snippets Groups Projects
Commit 0262444c authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Code standards fix(?)

parent 0bc95db9
No related branches found
No related tags found
1 merge request!127Feature/exphr kpaxman global message timeout
...@@ -209,12 +209,12 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) { ...@@ -209,12 +209,12 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) {
// Create the stream context to use with file_get_contents // Create the stream context to use with file_get_contents
// so it times out after a certain period instead of // so it times out after a certain period instead of
// waiting indefinitely. // waiting indefinitely. Timeout is in seconds.
$context = stream_context_create(array( $context = stream_context_create([
'http' => array( 'http' => [
'timeout' => 3, // Timeout in seconds. 'timeout' => 3,
) ]
)); ]);
// Global message content. // Global message content.
$global_message = file_get_contents('https://uwaterloo.ca/global-message.html', 0, $context); $global_message = file_get_contents('https://uwaterloo.ca/global-message.html', 0, $context);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment