Revert revert of setSingleton(), unrelated to broken, accidentally committed code...
authorTim Starling <tstarling@users.mediawiki.org>
Wed, 9 Jan 2008 00:21:16 +0000 (00:21 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Wed, 9 Jan 2008 00:21:16 +0000 (00:21 +0000)
includes/filerepo/RepoGroup.php

index 1204031..4e9a8a6 100644 (file)
@@ -31,6 +31,13 @@ class RepoGroup {
                self::$instance = null;
        }
 
+       /**
+        * Set the singleton instance to a given object
+        */
+       static function setSingleton( $instance ) {
+               self::$instance = $instance;
+       }
+
        /**
         * Construct a group of file repositories. 
         * @param array $data Array of repository info arrays.