X-Git-Url: http://git.cyclocoop.org/%27.%28%24current%20%3E%202?a=blobdiff_plain;f=maintenance%2Fshell.php;h=f5ebc025ee96e9b9ee16cb2f4fecf9a5824832a9;hb=388bbf3f7baefea02f9c89c4ade958059fa4282d;hp=a67417fc09c166f7be5dcdafacf26717b1451886;hpb=c5f5ac85d14671a9baa983949e8acb81d092e802;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/shell.php b/maintenance/shell.php index a67417fc09..f5ebc025ee 100644 --- a/maintenance/shell.php +++ b/maintenance/shell.php @@ -93,8 +93,8 @@ class MediaWikiShell extends Maintenance { } if ( $d > 1 ) { # Set DBO_DEBUG (equivalent of $wgDebugDumpSql) - wfGetDB( DB_MASTER )->setFlag( DBO_DEBUG ); - wfGetDB( DB_REPLICA )->setFlag( DBO_DEBUG ); + $this->getDB( DB_MASTER )->setFlag( DBO_DEBUG ); + $this->getDB( DB_REPLICA )->setFlag( DBO_DEBUG ); } }