From 5194b6033bf1c453170cff4cd6df137cb5f75d7f Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 9 Jan 2008 00:21:16 +0000 Subject: [PATCH] Revert revert of setSingleton(), unrelated to broken, accidentally committed code in FSRepo.php. --- includes/filerepo/RepoGroup.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/filerepo/RepoGroup.php b/includes/filerepo/RepoGroup.php index 1204031fd0..4e9a8a6dc6 100644 --- a/includes/filerepo/RepoGroup.php +++ b/includes/filerepo/RepoGroup.php @@ -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. -- 2.20.1