From: Domas Mituzas Date: Mon, 15 Nov 2004 08:56:43 +0000 (+0000) Subject: add ugly notice asking to populate groups data, if anonymous group is not loaded X-Git-Tag: 1.5.0alpha1~1324 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=23e44883dc6163202c9ac9a0fc5f547603cccaf9;p=lhc%2Fweb%2Fwiklou.git add ugly notice asking to populate groups data, if anonymous group is not loaded --- diff --git a/includes/User.php b/includes/User.php index c79eb0fe0f..192e210894 100644 --- a/includes/User.php +++ b/includes/User.php @@ -340,6 +340,10 @@ class User { if(!$this->mId) { /** Get rights */ $anong = Group::newFromId($wgAnonGroupId); + if (!$anong) + wfDebugDieBacktrace("Please update your database schema " + ."and populate initial group data from " + ."maintenance/archives patches"); $anong->loadFromDatabase(); $this->mRights = explode(',', $anong->getRights()); $this->mDataLoaded = true;