From 953a80768a64074eb4f9c0699b920f667b16c69c Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 2 Jan 2008 20:48:01 +0000 Subject: [PATCH] Correction to r29191 -- don't break $wgArticlePath check when no $wgActionPaths. :D Cut-n-paste error. --- includes/WebRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/WebRequest.php b/includes/WebRequest.php index aafe13fc36..c20110edb1 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -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' ); } -- 2.20.1