From c0f1429720fb7656607011b04ad67b4561ef8ee2 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 2 May 2005 02:20:46 +0000 Subject: [PATCH] Add (somewhat redundant) check for static groups to loadFromDatabase(). It's redundant because static groups will generally have dataLoaded=true, although I don't want to rely on that. Remove unnecessary breakage of command line mode. --- includes/Group.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/Group.php b/includes/Group.php index a660583c5c..48cd753f7a 100644 --- a/includes/Group.php +++ b/includes/Group.php @@ -39,11 +39,10 @@ class Group { /** Load group datas from database */ function loadFromDatabase() { - global $wgCommandLineMode; $fname = 'Group::loadFromDatabase'; // See if it's already loaded - if ( $this->dataLoaded || $wgCommandLineMode ) { + if ( $this->dataLoaded || Group::getStaticGroups() ) { return; } -- 2.20.1