From: Domas Mituzas Date: Mon, 1 Aug 2005 18:30:31 +0000 (+0000) Subject: add error message detailing what is wrong if bagostuff fails... ;-) X-Git-Tag: 1.6.0~2095 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=62eddad34c578135d3402ac31ea75108b3629521;p=lhc%2Fweb%2Fwiklou.git add error message detailing what is wrong if bagostuff fails... ;-) --- diff --git a/includes/BagOStuff.php b/includes/BagOStuff.php index 9ac3064a6b..662e32c9b9 100644 --- a/includes/BagOStuff.php +++ b/includes/BagOStuff.php @@ -406,6 +406,10 @@ class MediaWikiBagOStuff extends SqlBagOStuff { function getTableName() { if ( !$this->tableInitialised ) { $dbw =& wfGetDB( DB_MASTER ); + /* This is actually a hack, we should be able + to use Language classes here... or not */ + if (!$dbw) + die("Could not connect to database"); $this->table = $dbw->tableName( $this->table ); $this->tableInitialised = true; }