Correction to r29191 -- don't break $wgArticlePath check when no $wgActionPaths. :D
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 2 Jan 2008 20:48:01 +0000 (20:48 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 2 Jan 2008 20:48:01 +0000 (20:48 +0000)
Cut-n-paste error.

includes/WebRequest.php

index aafe13f..c20110e 100644 (file)
@@ -80,12 +80,12 @@ class WebRequest {
                                        $matches = $this->extractTitle( $path, "$wgScript/$1" );
                                        
                                        global $wgArticlePath;
-                                       if( !$matches && $wgActionPaths) {
+                                       if( !$matches && $wgArticlePath ) {
                                                $matches = $this->extractTitle( $path, $wgArticlePath );
                                        }
                                        
                                        global $wgActionPaths;
-                                       if( !$matches && $wgActionPaths) {
+                                       if( !$matches && $wgActionPaths ) {
                                                $matches = $this->extractTitle( $path, $wgActionPaths, 'action' );
                                        }