Add (somewhat redundant) check for static groups to loadFromDatabase(). It's redundan...
[lhc/web/wiklou.git] / includes / Group.php
index a660583..48cd753 100644 (file)
@@ -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;
                }