Fixes 'root'-style rewrite configurations
* (bug 12451) AJAX title normalization tweaks
* When a user creating a page is not allowed to either create the page nor edit
it, all applicable reasons are now shown.
+* (bug 11428) Allow $wgScript inside $wgArticlePath when emulating PATH_INFO
+ Fixes 'root'-style rewrite configurations
== Parser changes in 1.12 ==
if( $a ) {
$path = $a['path'];
+ global $wgScript;
+ if( $path == $wgScript ) {
+ // Script inside a rewrite path?
+ // Abort to keep from breaking...
+ return;
+ }
+ // Raw PATH_INFO style
+ $matches = $this->extractTitle( $path, "$wgScript/$1" );
+
global $wgArticlePath;
- $matches = $this->extractTitle( $path, $wgArticlePath );
+ if( !$matches && $wgActionPaths) {
+ $matches = $this->extractTitle( $path, $wgArticlePath );
+ }
global $wgActionPaths;
if( !$matches && $wgActionPaths) {