[aur-dev] [PATCH 1/3] rpc: small optimizations

Dan McGee dan at archlinux.org
Thu Aug 6 21:02:28 EDT 2009


Signed-off-by: Dan McGee <dan at archlinux.org>
---
 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 {
-- 
1.6.4



More information about the aur-dev mailing list