X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FpreprocessDump.php;h=0dc19e2865cd3d9f3f641209ee1cb446efb8a629;hb=af3f05e776404c71bb0aacf289b7249f442262d6;hp=bb3d68b0d2c6e1fbe256a4faf81a79b903beaadf;hpb=0cfa07f623d0623e83e3f162ee4e4a37fc1d7a53;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/preprocessDump.php b/maintenance/preprocessDump.php index bb3d68b0d2..0dc19e2865 100644 --- a/maintenance/preprocessDump.php +++ b/maintenance/preprocessDump.php @@ -25,7 +25,7 @@ * @ingroup Maintenance */ -require_once( __DIR__ . '/dumpIterator.php' ); +require_once __DIR__ . '/dumpIterator.php'; /** * Maintenance script that takes page text out of an XML dump file and @@ -86,12 +86,11 @@ class PreprocessDump extends DumpIterator { try { $this->mPreprocessor->preprocessToObj( strval( $content->getNativeData() ), 0 ); - } - catch(Exception $e) { - $this->error("Caught exception " . $e->getMessage() . " in " . $rev->getTitle()->getPrefixedText() ); + } catch ( Exception $e ) { + $this->error( "Caught exception " . $e->getMessage() . " in " . $rev->getTitle()->getPrefixedText() ); } } } $maintClass = "PreprocessDump"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;