summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-04-28 18:17:25 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-04-28 18:54:26 +0200
commitc90faa44a173c79643093b4613276b98721e590d (patch)
treeae245bc85d6dd4fea3e5f7cb9ac7565aa8cc2479
parent3447dfcbff0e8d48e7eac19d5ea8e836a67692a0 (diff)
downloadaur-c90faa44a173c79643093b4613276b98721e590d.tar.gz
aur-c90faa44a173c79643093b4613276b98721e590d.tar.xz
Use RPC API version 1 by default
Most AUR helpers don't support the new format yet. Use version 1 of the API by default. In order to use the new format, "v=2" can be appended to the list of GET parameters. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r--web/lib/aurjson.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php
index 6dec0838..50d859c5 100644
--- a/web/lib/aurjson.class.php
+++ b/web/lib/aurjson.class.php
@@ -11,7 +11,7 @@ include_once("aur.inc.php");
*/
class AurJSON {
private $dbh = false;
- private $version = 2;
+ private $version = 1;
private static $exposed_methods = array(
'search', 'info', 'multiinfo', 'msearch', 'suggest'
);