X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpreprocessDump.php;h=683de45802ff05f46873811d1dbb7834e2f4474c;hb=171313e2ab337fcdfa5d366784192a96bc55d007;hp=bb3d68b0d2c6e1fbe256a4faf81a79b903beaadf;hpb=ed4db4af0a23379be7b452494a0e20c07458f6c0;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/preprocessDump.php b/maintenance/preprocessDump.php index bb3d68b0d2..683de45802 100644 --- a/maintenance/preprocessDump.php +++ b/maintenance/preprocessDump.php @@ -4,7 +4,7 @@ * It may be useful for getting preprocessor statistics or filling the * preprocessor cache. * - * Copyright © 2011 Platonides - http://www.mediawiki.org/ + * Copyright © 2011 Platonides - https://www.mediawiki.org/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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;