* changed variable list as per comment on r79954 left only wgDBtype
[lhc/web/wiklou.git] / includes / WebRequest.php
index 7ec8c67..1c2e22e 100644 (file)
@@ -65,7 +65,7 @@ class WebRequest {
        public function interpolateTitle() {
                global $wgUsePathInfo;
 
-               // bug 16019: title interpolation on API queries is useless and possible harmful
+               // bug 16019: title interpolation on API queries is useless and sometimes harmful
                if ( defined( 'MW_API' ) ) {
                        return;
                }
@@ -526,13 +526,15 @@ class WebRequest {
                global $wgTitle;
                $basequery = '';
                foreach( $_GET as $var => $val ) {
-                       if ( $var == 'title' )
+                       if ( $var == 'title' ) {
                                continue;
-                       if ( is_array( $val ) )
+                       }
+                       if ( is_array( $val ) ) {
                                /* This will happen given a request like
                                 * http://en.wikipedia.org/w/index.php?title[]=Special:Userlogin&returnto[]=Main_Page
                                 */
                                continue;
+                       }
                        $basequery .= '&' . urlencode( $var ) . '=' . urlencode( $val );
                }
                $basequery .= '&' . $query;