From: Tim Starling Date: Mon, 2 May 2005 02:20:46 +0000 (+0000) Subject: Add (somewhat redundant) check for static groups to loadFromDatabase(). It's redundan... X-Git-Tag: 1.5.0alpha1~31 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=c0f1429720fb7656607011b04ad67b4561ef8ee2;p=lhc%2Fweb%2Fwiklou.git 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. --- 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; }