Rename DB_SLAVE constant to DB_REPLICA
[lhc/web/wiklou.git] / includes / cache / LinkCache.php
index 3fd29f3..6a602df 100644 (file)
@@ -245,7 +245,7 @@ class LinkCache {
                }
 
                // Some fields heavily used for linking...
-               $db = $this->mForUpdate ? wfGetDB( DB_MASTER ) : wfGetDB( DB_SLAVE );
+               $db = $this->mForUpdate ? wfGetDB( DB_MASTER ) : wfGetDB( DB_REPLICA );
 
                $row = $db->selectRow( 'page', self::getSelectFields(),
                        [ 'page_namespace' => $nt->getNamespace(), 'page_title' => $nt->getDBkey() ],