diff options
author | Dan McGee <dan@archlinux.org> | 2009-08-06 20:02:28 -0500 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2009-08-11 13:58:11 -0400 |
commit | 4af079a5bd75a83a0ff1465b1f1540684d896fb7 (patch) | |
tree | b725c065c2be24d3f9738c56c3e21d97e279988b /web | |
parent | 5c138549228a0887a160451ca6262c0ebb8250ac (diff) | |
download | aurweb-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')
-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 f94d5bc..dc3d20b 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 { |