X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FfetchText.php;h=bc4fa31f10a23af8b91821e13c46b947fcfedb67;hb=df0fe79fcbe089d654163b598aca63d0ae39c645;hp=2ed1efaed503be5a80c77d4b039182a2dcc1bab5;hpb=4a975b8099ee11b15421d03be02206935a8422f1;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/fetchText.php b/maintenance/fetchText.php index 2ed1efaed5..bc4fa31f10 100644 --- a/maintenance/fetchText.php +++ b/maintenance/fetchText.php @@ -24,6 +24,8 @@ require_once __DIR__ . '/Maintenance.php'; +use Wikimedia\Rdbms\IDatabase; + /** * Maintenance script used to fetch page text in a subprocess. * @@ -71,7 +73,7 @@ class FetchText extends Maintenance { /** * May throw a database error if, say, the server dies during query. - * @param DatabaseBase $db + * @param IDatabase $db * @param int $id The old_id * @return string */ @@ -90,5 +92,5 @@ class FetchText extends Maintenance { } } -$maintClass = "FetchText"; +$maintClass = FetchText::class; require_once RUN_MAINTENANCE_IF_MAIN;