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>
This commit is contained in:
Lukas Fleischer 2014-04-28 18:17:25 +02:00
parent 3447dfcbff
commit c90faa44a1

View file

@ -11,7 +11,7 @@ include_once("aur.inc.php");
*/ */
class AurJSON { class AurJSON {
private $dbh = false; private $dbh = false;
private $version = 2; private $version = 1;
private static $exposed_methods = array( private static $exposed_methods = array(
'search', 'info', 'multiinfo', 'msearch', 'suggest' 'search', 'info', 'multiinfo', 'msearch', 'suggest'
); );