Merge "Fix error in various deprecated selectFields() methods"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 3 Jul 2018 17:20:34 +0000 (17:20 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 3 Jul 2018 17:20:34 +0000 (17:20 +0000)
includes/GlobalFunctions.php
includes/libs/rdbms/loadbalancer/ILoadBalancer.php

index d9996f4..6f32ed1 100644 (file)
@@ -3103,6 +3103,7 @@ function wfShorthandToInteger( $string = '', $default = -1 ) {
  * @return string The language code which complying with BCP 47 standards.
  */
 function wfBCP47( $code ) {
+       wfDeprecated( __METHOD__, '1.31' );
        return LanguageCode::bcp47( $code );
 }
 
index 04a553c..4eaa4e8 100644 (file)
@@ -86,8 +86,6 @@ interface ILoadBalancer {
 
        /** @var int DB handle should have DBO_TRX disabled and the caller will leave it as such */
        const CONN_TRX_AUTOCOMMIT = 1;
-       /** @var int Alias for CONN_TRX_AUTOCOMMIT for b/c; deprecated since 1.31 */
-       const CONN_TRX_AUTO = 1;
 
        /** @var string Manager of ILoadBalancer instances is running post-commit callbacks */
        const STAGE_POSTCOMMIT_CALLBACKS = 'stage-postcommit-callbacks';