summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-08-06 20:02:28 -0500
committerLoui Chang <louipc.ist@gmail.com>2009-08-11 13:58:11 -0400
commit4af079a5bd75a83a0ff1465b1f1540684d896fb7 (patch)
treeb725c065c2be24d3f9738c56c3e21d97e279988b /web
parent5c138549228a0887a160451ca6262c0ebb8250ac (diff)
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.php4
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 {