Reverted r41301, r41332 -- weird overly-specific URL tweak setting for bug 15739.
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 29 Sep 2008 23:02:52 +0000 (23:02 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 29 Sep 2008 23:02:52 +0000 (23:02 +0000)
RELEASE-NOTES
includes/DefaultSettings.php
includes/Title.php

index b5c92fa..8406fa1 100644 (file)
@@ -140,8 +140,6 @@ The following extensions are migrated into MediaWiki 1.14:
   restriction types on the protection form.
 * (bug 8440) Allow preventing blocked users from editing their talk pages
 * Improved upload file type detection for OpenDocument formats
-* (bug 15739) Add $wgArticlePathForCurid to make links with only curid=# as the
-  query string use the article path, rather than the script path
 * Added the ability to set the target attribute on external links with 
   $wgExternalLinkTarget
 * (bug 674) Allow admins to block users from editing specific articles and
index f331d91..1a60189 100644 (file)
@@ -3455,10 +3455,3 @@ $wgUseAutomaticEditSummaries = true;
  * Requires memcached.
  */
 $wgPasswordAttemptThrottle = array( 'count' => 5, 'seconds' => 300 );
-
-/**
- * Allow using articlepath for links where the only querystring is a curid (e.g. use /wiki/Main_Page?curid=1)
- * WARNING: This will not work for all hosts or configuration setup, so BE CAREFUL.
- * Only use this setting if you have to, as it is not recommended.
- */
-$wgArticlePathForCurid = false;
index 80ebdb1..0b0027b 100644 (file)
@@ -714,7 +714,7 @@ class Title {
         */
        public function getLocalURL( $query = '', $variant = false ) {
                global $wgArticlePath, $wgScript, $wgServer, $wgRequest;
-               global $wgVariantArticlePath, $wgContLang, $wgUser, $wgArticlePathForCurid;
+               global $wgVariantArticlePath, $wgContLang, $wgUser;
 
                if( is_array( $query ) ) {
                        $query = wfArrayToCGI( $query );
@@ -738,7 +738,7 @@ class Title {
                        }
                } else {
                        $dbkey = wfUrlencode( $this->getPrefixedDBkey() );
-                       if ( $query == '' || ($wgArticlePathForCurid && substr_count( $query, '&' ) == 0 && strpos( $query, 'curid=' ) === 0 ) ) {
+                       if ( $query == '' ) {
                                if( $variant != false && $wgContLang->hasVariants() ) {
                                        if( $wgVariantArticlePath == false ) {
                                                $variantArticlePath =  "$wgScript?title=$1&variant=$2"; // default
@@ -750,7 +750,6 @@ class Title {
                                } else {
                                        $url = str_replace( '$1', $dbkey, $wgArticlePath );
                                }
-                               $url = wfAppendQuery( $url, $query );
                        } else {
                                global $wgActionPaths;
                                $url = false;