From 23e44883dc6163202c9ac9a0fc5f547603cccaf9 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Mon, 15 Nov 2004 08:56:43 +0000 Subject: [PATCH] add ugly notice asking to populate groups data, if anonymous group is not loaded --- includes/User.php | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.20.1