Merge "Add suppressredirect right to the createeditmovepage grant"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 19 Aug 2019 12:14:04 +0000 (12:14 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 19 Aug 2019 12:14:04 +0000 (12:14 +0000)
1  2 
includes/DefaultSettings.php

@@@ -158,7 -158,7 +158,7 @@@ $wgUsePathInfo = ( strpos( PHP_SAPI, 'c
        ( strpos( PHP_SAPI, 'apache2filter' ) === false ) &&
        ( strpos( PHP_SAPI, 'isapi' ) === false );
  
 -/**@}*/
 +/** @} */
  
  /************************************************************************//**
   * @name   URLs and file paths
@@@ -330,22 -330,15 +330,22 @@@ $wgAppleTouchIcon = false
  $wgReferrerPolicy = false;
  
  /**
 - * The local filesystem path to a temporary directory. This is not required to
 - * be web accessible.
 + * The local filesystem path to a temporary directory. This must not be web accessible.
   *
 - * When this setting is set to false, its value will be set through a call
 - * to wfTempDir(). See that methods implementation for the actual detection
 - * logic.
 + * When this setting is set to false, its value will automatically be decided
 + * through the first call to wfTempDir(). See that method's implementation for
 + * the actual detection logic.
   *
 - * Developers should use the global function wfTempDir() instead of this
 - * variable.
 + * To find the temporary path for the current wiki, developers must not use
 + * this variable directly. Use the global function wfTempDir() instead.
 + *
 + * The temporary directory is expected to be shared with other applications,
 + * including other MediaWiki instances (which might not run the same version
 + * or configution). When storing files here, take care to avoid conflicts
 + * with other instances of MediaWiki. For example, when caching the result
 + * of a computation, the file name should incorporate the input of the
 + * computation so that it cannot be confused for the result of a similar
 + * computation by another MediaWiki instance.
   *
   * @see wfTempDir()
   * @note Default changed to false in MediaWiki 1.20.
@@@ -384,7 -377,7 +384,7 @@@ $wgUploadStashScalerBaseUrl = false
   */
  $wgActionPaths = [];
  
 -/**@}*/
 +/** @} */
  
  /************************************************************************//**
   * @name   Files and file uploads
@@@ -745,11 -738,10 +745,11 @@@ $wgUploadDialog = 
   *
   * This is an array of file backend configuration arrays.
   * Each backend configuration has the following parameters:
 - *  - 'name'         : A unique name for the backend
 - *  - 'class'        : The file backend class to use
 - *  - 'wikiId'       : A unique string that identifies the wiki (container prefix)
 - *  - 'lockManager'  : The name of a lock manager (see $wgLockManagers)
 + *  - name        : A unique name for the backend
 + *  - class       : The file backend class to use
 + *  - wikiId      : A unique string that identifies the wiki (container prefix)
 + *  - lockManager : The name of a lock manager (see $wgLockManagers) [optional]
 + *  - fileJournal : File journal configuration for FileJournal::__construct() [optional]
   *
   * See FileBackend::__construct() for more details.
   * Additional parameters are specific to the file backend class used.
@@@ -782,8 -774,8 +782,8 @@@ $wgFileBackends = []
  /**
   * Array of configuration arrays for each lock manager.
   * Each backend configuration has the following parameters:
 - *  - 'name'        : A unique name for the lock manager
 - *  - 'class'       : The lock manger class to use
 + *  - name  : A unique name for the lock manager
 + *  - class : The lock manger class to use
   *
   * See LockManager::__construct() for more details.
   * Additional parameters are specific to the lock manager class used.
@@@ -2060,21 -2052,23 +2060,21 @@@ $wgSharedSchema = false
   *                  sent to it. It will be excluded from lag checks in maintenance scripts.
   *                  The only way it can receive traffic is if groupLoads is used.
   *
 - *   - groupLoads:  array of load ratios, the key is the query group name. A query may belong
 - *                  to several groups, the most specific group defined here is used.
 + *   - groupLoads:  (optional) Array of load ratios, the key is the query group name. A query
 + *                  may belong to several groups, the most specific group defined here is used.
   *
 - *   - flags:       bit field
 - *                  - DBO_DEFAULT -- turns on DBO_TRX only if "cliMode" is off (recommended)
 - *                  - DBO_DEBUG -- equivalent of $wgDebugDumpSql
 - *                  - DBO_TRX -- wrap entire request in a transaction
 - *                  - DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
 - *                  - DBO_PERSISTENT -- enables persistent database connections
 - *                  - DBO_SSL -- uses SSL/TLS encryption in database connections, if available
 - *                  - DBO_COMPRESS -- uses internal compression in database connections,
 - *                                    if available
 + *   - flags:       (optional) Bit field of properties:
 + *                  - DBO_DEFAULT:    Transactionalize web requests and use autocommit otherwise
 + *                  - DBO_DEBUG:      Equivalent of $wgDebugDumpSql
 + *                  - DBO_SSL:        Use TLS connection encryption if available
 + *                  - DBO_COMPRESS:   Use protocol compression with database connections
 + *                  - DBO_PERSISTENT: Enables persistent database connections
   *
   *   - max lag:     (optional) Maximum replication lag before a replica DB goes out of rotation
   *   - is static:   (optional) Set to true if the dataset is static and no replication is used.
   *   - cliMode:     (optional) Connection handles will not assume that requests are short-lived
   *                  nor that INSERT..SELECT can be rewritten into a buffered SELECT and INSERT.
 + *                  This is what DBO_DEFAULT uses to determine when a web request is present.
   *                  [Default: uses value of $wgCommandLineMode]
   *
   *   These and any other user-defined properties will be assigned to the mLBInfo member
@@@ -2144,6 -2138,34 +2144,6 @@@ $wgDBerrorLog = false
   */
  $wgDBerrorLogTZ = false;
  
 -/**
 - * Set true to enable Oracle DCRP (supported from 11gR1 onward)
 - *
 - * To use this feature set to true and use a datasource defined as
 - * POOLED (i.e. in tnsnames definition set server=pooled in connect_data
 - * block).
 - *
 - * Starting from 11gR1 you can use DCRP (Database Resident Connection
 - * Pool) that maintains established sessions and reuses them on new
 - * connections.
 - *
 - * Not completely tested, but it should fall back on normal connection
 - * in case the pool is full or the datasource is not configured as
 - * pooled.
 - * And the other way around; using oci_pconnect on a non pooled
 - * datasource should produce a normal connection.
 - *
 - * When it comes to frequent shortlived DB connections like with MW
 - * Oracle tends to s***. The problem is the driver connects to the
 - * database reasonably fast, but establishing a session takes time and
 - * resources. MW does not rely on session state (as it does not use
 - * features such as package variables) so establishing a valid session
 - * is in this case an unwanted overhead that just slows things down.
 - *
 - * @warning EXPERIMENTAL!
 - */
 -$wgDBOracleDRCP = false;
 -
  /**
   * Other wikis on this site, can be administered from a single developer account.
   *
@@@ -2176,7 -2198,7 +2176,7 @@@ $wgSlaveLagCritical = 30
   */
  $wgDBWindowsAuthentication = false;
  
 -/**@}*/ # End of DB settings }
 +/** @} */ # End of DB settings }
  
  /************************************************************************//**
   * @name   Text storage
@@@ -4688,6 -4710,12 +4688,6 @@@ $wgRemoveCredentialsBlacklist = 
        \MediaWiki\Auth\PasswordAuthenticationRequest::class,
  ];
  
 -/**
 - * For compatibility with old installations set to false
 - * @deprecated since 1.24 will be removed in future
 - */
 -$wgPasswordSalt = true;
 -
  /**
   * Specifies the minimal length of a user password. If set to 0, empty pass-
   * words are allowed.
@@@ -5440,7 -5468,7 +5440,7 @@@ $wgAutoConfirmCount = 0
   *  - [ APCOND_IPINRANGE, range ]:
   *      true if the user has an IP address in the range of the passed parameter
   *  - [ APCOND_BLOCKED ]:
 - *      true if the user is blocked
 + *      true if the user is sitewide blocked
   *  - [ APCOND_ISBOT ]:
   *      true if the user is a bot
   *  - similar constructs can be defined by extensions
@@@ -5711,11 -5739,6 +5711,11 @@@ $wgRateLimits = 
                'ip-all' => [ 10, 3600 ],
                'user' => [ 4, 86400 ]
        ],
 +      // since 1.33 - rate limit email confirmations
 +      'confirmemail' => [
 +              'ip-all' => [ 10, 3600 ],
 +              'user' => [ 4, 86400 ]
 +      ],
        // Purging pages
        'purge' => [
                'ip' => [ 30, 60 ],
@@@ -5808,7 -5831,6 +5808,7 @@@ $wgGrantPermissions = []
  // @TODO: clean up grants
  // @TODO: auto-include read/editsemiprotected rights?
  
 +$wgGrantPermissions['basic']['autocreateaccount'] = true;
  $wgGrantPermissions['basic']['autoconfirmed'] = true;
  $wgGrantPermissions['basic']['autopatrol'] = true;
  $wgGrantPermissions['basic']['editsemiprotected'] = true;
@@@ -5860,6 -5882,7 +5860,7 @@@ $wgGrantPermissions['createeditmovepage
  $wgGrantPermissions['createeditmovepage']['move-rootuserpages'] = true;
  $wgGrantPermissions['createeditmovepage']['move-subpages'] = true;
  $wgGrantPermissions['createeditmovepage']['move-categorypages'] = true;
+ $wgGrantPermissions['createeditmovepage']['suppressredirect'] = true;
  
  $wgGrantPermissions['uploadfile']['upload'] = true;
  $wgGrantPermissions['uploadfile']['reupload-own'] = true;
@@@ -5986,8 -6009,9 +5987,8 @@@ $wgSecretKey = false
   * Big list of banned IP addresses.
   *
   * This can have the following formats:
 - * - An array of addresses, either in the values
 - *   or the keys (for backward compatibility, deprecated since 1.30)
 - * - A string, in that case this is the path to a file
 + * - An array of addresses
 + * - A string, in which case this is the path to a file
   *   containing the list of IP addresses, one per line
   */
  $wgProxyList = [];
@@@ -8954,7 -8978,7 +8955,7 @@@ $wgExperiencedUserMemberSince = 30; # d
   * @code
   * $wgInterwikiPrefixDisplayTypes = [
   *    'iwprefix' => 'definition'
 - *];
 + * ];
   * @endcode
   */
  $wgInterwikiPrefixDisplayTypes = [];