X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FbackupTextPass.inc;h=11a05904def6f586d26c22fd77f379b70a7e8762;hb=7c9909f09dbb1dad994a0cc8b89db1a97b74073b;hp=d83f1fccc1072d980ac1c7101ae21777e6e92631;hpb=48045454f4a6d8997ffb2e7d1bf8e605f88f47b0;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/backupTextPass.inc b/maintenance/backupTextPass.inc index d83f1fccc1..11a05904de 100644 --- a/maintenance/backupTextPass.inc +++ b/maintenance/backupTextPass.inc @@ -464,8 +464,9 @@ class TextPassDumper extends BackupDumper { * is thrown. * * @param string $id The revision id to get the text for - * @param string|bool|null $model The content model used to determine applicable export transformations. - * If $model is null, it will be determined from the database. + * @param string|bool|null $model The content model used to determine + * applicable export transformations. + * If $model is null, it will be determined from the database. * @param string|null $format The content format used when applying export transformations. * * @throws MWException @@ -659,13 +660,13 @@ class TextPassDumper extends BackupDumper { } private function getTextSpawned( $id ) { - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); if ( !$this->spawnProc ) { // First time? $this->openSpawn(); } $text = $this->getTextSpawnedOnce( $id ); - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); return $text; } @@ -712,7 +713,7 @@ class TextPassDumper extends BackupDumper { } private function closeSpawn() { - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); if ( $this->spawnRead ) { fclose( $this->spawnRead ); } @@ -729,7 +730,7 @@ class TextPassDumper extends BackupDumper { pclose( $this->spawnProc ); } $this->spawnProc = false; - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); } private function getTextSpawnedOnce( $id ) {