* added in language mapping for commons upload form language hack
[lhc/web/wiklou.git] / js2 / apiProxyPage.js
index 327e5c6..f113a5d 100644 (file)
@@ -1,27 +1,28 @@
 /*
 * mwProxy js2 page system.
 *
-* invokes the apiProxy system 
+* Invokes the apiProxy system 
 */
 
 /*
- * since this is proxy server set a pre-append debug flag to know which debug msgs are coming from where
+ * Since this is proxy server set a pre-append debug flag to know which debug msgs are coming from where
  */
  
-$mw.conf['debug_pre'] = 'Proxy';
+mw.conf['debug_pre'] = 'Proxy';
  
-if( !mwApiProxyConfig )
-       var mwApiProxyConfig = {};
+if ( !mwApiProxyConfig )
+       var mwApiProxyConfig = { };
 
-//The default mwApiProxyConfig config 
-//(presently hard coded but should read from user and site config)  
+// The default mwApiProxyConfig config 
+// (presently hard coded but should read from user and site config)  
 var mwApiProxyDefaultConfig = {
                'master_whitelist'      : [  'en.wikipedia.org', 'localhost', '127.1.1.100' ],
-               'master_blacklist'      : []                                    
+               'master_blacklist'      : []
 };
-//user_white_list should also be checked and configured at runtime.
-js2AddOnloadHook( function() {                         
-       //build our configuration from the default and mwApiProxyConfig vars
-       mwApiProxyConfig = $j.extend(true, mwApiProxyDefaultConfig,  mwApiProxyConfig); 
-       $j.apiProxy( 'server', mwApiProxyConfig );      
-});
+
+// User white_list should also be checked and configured at runtime.
+js2AddOnloadHook( function() {
+       // build our configuration from the default and mwApiProxyConfig vars
+       mwApiProxyConfig = $j.extend( true, mwApiProxyDefaultConfig,  mwApiProxyConfig );
+       $j.apiProxy( 'server', mwApiProxyConfig );
+} );