Follow up to r48379, move getSlaveDB() and getMasterDB() up a level too.
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 18 Mar 2009 05:17:49 +0000 (05:17 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 18 Mar 2009 05:17:49 +0000 (05:17 +0000)
includes/filerepo/FileRepo.php
includes/filerepo/LocalRepo.php

index 6332d3a..face161 100644 (file)
@@ -590,4 +590,12 @@ abstract class FileRepo {
                }
                return wfMsg( 'shared-repo' ); 
        }
+       
+       function getSlaveDB() {
+               return wfGetDB( DB_SLAVE );
+       }
+
+       function getMasterDB() {
+               return wfGetDB( DB_MASTER );
+       }
 }
index 25f9092..1ec1b9a 100644 (file)
@@ -10,14 +10,6 @@ class LocalRepo extends FSRepo {
        var $fileFromRowFactory = array( 'LocalFile', 'newFromRow' );
        var $oldFileFromRowFactory = array( 'OldLocalFile', 'newFromRow' );
 
-       function getSlaveDB() {
-               return wfGetDB( DB_SLAVE );
-       }
-
-       function getMasterDB() {
-               return wfGetDB( DB_MASTER );
-       }
-
        function getMemcKey( $key ) {
                return wfWikiID( $this->getSlaveDB() ) . ":{$key}";
        }