X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FimportSites.php;h=8845c60640c2706575fc03bb7eea0fee54f6ffaa;hb=48fdd531c8cf294b39e4f0ea2b3d06f742c197c7;hp=7abb8d72b864a5bcd25656e225449844438cfc18;hpb=b3b50d729498435b8b9370ecddea73d082f9b9e6;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/importSites.php b/maintenance/importSites.php index 7abb8d72b8..8845c60640 100644 --- a/maintenance/importSites.php +++ b/maintenance/importSites.php @@ -15,14 +15,15 @@ require_once $basePath . '/maintenance/Maintenance.php'; class ImportSites extends Maintenance { public function __construct() { - $this->mDescription = 'Imports site definitions from XML into the sites table.'; + $this->addDescription( 'Imports site definitions from XML into the sites table.' ); - $this->addArg( 'file', 'An XML file containing site definitions (see docs/sitelist.txt). Use "php://stdin" to read from stdin.', true ); + $this->addArg( 'file', 'An XML file containing site definitions (see docs/sitelist.txt). ' . + 'Use "php://stdin" to read from stdin.', true + ); parent::__construct(); } - /** * Do the import. */ @@ -49,4 +50,4 @@ class ImportSites extends Maintenance { } $maintClass = 'ImportSites'; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;