dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49af5ce
)
add error message detailing what is wrong if bagostuff fails... ;-)
author
Domas Mituzas
<midom@users.mediawiki.org>
Mon, 1 Aug 2005 18:30:31 +0000
(18:30 +0000)
committer
Domas Mituzas
<midom@users.mediawiki.org>
Mon, 1 Aug 2005 18:30:31 +0000
(18:30 +0000)
includes/BagOStuff.php
patch
|
blob
|
history
diff --git
a/includes/BagOStuff.php
b/includes/BagOStuff.php
index
9ac3064
..
662e32c
100644
(file)
--- 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;
}