resourceloader: Document that WikiModule::getDB() may return IDatabase
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 3 Nov 2014 17:45:27 +0000 (09:45 -0800)
committerKrinkle <krinklemail@gmail.com>
Mon, 3 Nov 2014 18:13:56 +0000 (18:13 +0000)
Change-Id: I97d604c5fab38f379adcc76412bd5ee23294b300

includes/resourceloader/ResourceLoaderWikiModule.php

index 2a1736d..e195cf2 100644 (file)
@@ -70,7 +70,7 @@ abstract class ResourceLoaderWikiModule extends ResourceLoaderModule {
         * In particular, it doesn't work for getting the content of JS and CSS pages. That functionality
         * will use the local DB irrespective of the return value of this method.
         *
-        * @return DatabaseBase|null
+        * @return IDatabase|null
         */
        protected function getDB() {
                return wfGetDB( DB_SLAVE );