Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add web updater test override
  • Loading branch information
ginatrapani committed Mar 10, 2012
1 parent 485a262 commit 1405712
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion version_download.php
@@ -1,8 +1,14 @@
<?php
/**
* Redirect request to location of the latest user package download.
* Return current version and download location in JSON format, with override for web updater tests.
*/
require_once('version.inc.php');
header('Content-type: application/json');

// Test override
if (isset($_GET['version']) && isset($_GET['url'])) {
$current_version = $_GET['version'];
$current_version_download_link = $_GET['url'];
}
?>
{"version":"<?= $current_version ?>", "url":"<?= $current_version_download_link ?>"}

0 comments on commit 1405712

Please sign in to comment.