Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add web updater test override
- Loading branch information
1 parent
485a262
commit 1405712
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ?>"} |