X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fshell.php;h=f5ebc025ee96e9b9ee16cb2f4fecf9a5824832a9;hb=9d31e46d0f4dc6d68ad38b09816bea2b447f8b50;hp=a67417fc09c166f7be5dcdafacf26717b1451886;hpb=a72fa4c99dd48dad8c05ca74cd007405c94a6d7a;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 ); } }