From: Mark A. Hershberger Date: Mon, 10 Mar 2014 02:17:01 +0000 (-0400) Subject: Set a title for the context during import on the cli X-Git-Tag: 1.31.0-rc.0~16639^2 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=2bae4c1cf44473f00283cc09ef8dff38d2aa4241;p=lhc%2Fweb%2Fwiklou.git Set a title for the context during import on the cli Bug: 62467 Change-Id: I9e0b6a219ea4176f9a3d14b8dbbea08b36c76c59 --- diff --git a/maintenance/importTextFile.php b/maintenance/importTextFile.php index dadc84a4a9..c7df6c311b 100644 --- a/maintenance/importTextFile.php +++ b/maintenance/importTextFile.php @@ -42,6 +42,7 @@ if ( count( $args ) < 1 || isset( $options['help'] ) ) { echo "\nUsing title '" . $title->getPrefixedText() . "'..."; if ( !$title->exists() || !isset( $options['nooverwrite'] ) ) { + RequestContext::getMain()->setTitle( $title ); $text = file_get_contents( $filename ); $user = isset( $options['user'] ) ? $options['user'] : 'Maintenance script';