X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FnukeNS.php;h=ee1f59c1243e617ce423936198946d8ed968f37e;hb=e765067d8a5f96f72dbca96f14ff728a75806966;hp=e735aed00fcd0e1a16cfb8305000e9765df5745a;hpb=f4a53c54065c385172363416eb3cb44b67585ca2;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/nukeNS.php b/maintenance/nukeNS.php index e735aed00f..ee1f59c124 100644 --- a/maintenance/nukeNS.php +++ b/maintenance/nukeNS.php @@ -88,7 +88,7 @@ class NukeNS extends Maintenance { $dbw->query( "DELETE FROM $tbl_pag WHERE page_id = $id" ); $this->commitTransaction( $dbw, __METHOD__ ); // Delete revisions as appropriate - $child = $this->runChild( 'NukePage', 'nukePage.php' ); + $child = $this->runChild( NukePage::class, 'nukePage.php' ); $child->deleteRevisions( $revs ); $this->purgeRedundantText( true ); $n_deleted++; @@ -118,5 +118,5 @@ class NukeNS extends Maintenance { } } -$maintClass = "NukeNS"; +$maintClass = NukeNS::class; require_once RUN_MAINTENANCE_IF_MAIN;