Skip to content

Commit

Permalink
Temporarily disable API calls while Browserscope is in read-only mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Dec 16, 2011
1 parent 347c944 commit 4b663a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _inc/start.php
Expand Up @@ -128,6 +128,8 @@ function removeBackticks($str) {
}

function addBrowserscopeTest($title = '', $description = '', $url = '') {
// Temporarily disable API calls while Browserscope is in read-only mode
return false;
$bURL = 'http://www.browserscope.org/user/tests/create?api_key=' . BROWSERSCOPE_API_KEY . '&name=' . urlencode($title) . '&description=' . urlencode(substr($description, 0, 60)) . '&url=' . urlencode($url);
if ($json = file_get_contents($bURL)) {
// $http_response_header is a magic variable containing the resulting headers of file_get_contents()
Expand Down

0 comments on commit 4b663a7

Please sign in to comment.