Rename DB_SLAVE constant to DB_REPLICA
[lhc/web/wiklou.git] / includes / api / ApiStashEdit.php
index 297c0fb..bbfc17a 100644 (file)
@@ -313,7 +313,7 @@ class ApiStashEdit extends ApiBase {
         * @return string|null TS_MW timestamp or null
         */
        private static function lastEditTime( User $user ) {
-               $time = wfGetDB( DB_SLAVE )->selectField(
+               $time = wfGetDB( DB_REPLICA )->selectField(
                        'recentchanges',
                        'MAX(rc_timestamp)',
                        [ 'rc_user_text' => $user->getName() ],