From 2bae4c1cf44473f00283cc09ef8dff38d2aa4241 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Sun, 9 Mar 2014 22:17:01 -0400 Subject: [PATCH] Set a title for the context during import on the cli Bug: 62467 Change-Id: I9e0b6a219ea4176f9a3d14b8dbbea08b36c76c59 --- maintenance/importTextFile.php | 1 + 1 file changed, 1 insertion(+) 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'; -- 2.20.1