diff options
author | Dan McGee <dan@archlinux.org> | 2009-08-07 03:02:28 +0200 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2009-08-11 19:58:11 +0200 |
commit | 4af079a5bd75a83a0ff1465b1f1540684d896fb7 (patch) | |
tree | b725c065c2be24d3f9738c56c3e21d97e279988b /web/html | |
parent | 5c138549228a0887a160451ca6262c0ebb8250ac (diff) | |
download | aur-4af079a5bd75a83a0ff1465b1f1540684d896fb7.tar.gz aur-4af079a5bd75a83a0ff1465b1f1540684d896fb7.tar.xz |
rpc: small optimizations
Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/rpc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/rpc.php b/web/html/rpc.php index f94d5bc0..dc3d20b3 100644 --- a/web/html/rpc.php +++ b/web/html/rpc.php @@ -1,13 +1,13 @@ <?php -set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR . '../lang'); +set_include_path(get_include_path() . PATH_SEPARATOR . '../lib'); include("aur.inc"); include("aurjson.class.php"); -$rpc_o = new AurJSON(); if ( $_SERVER['REQUEST_METHOD'] == 'GET' ) { if ( isset($_GET['type']) ) { + $rpc_o = new AurJSON(); echo $rpc_o->handle($_GET); } else { |