~ubuntu-branches/ubuntu/trusty/mediawiki/trusty-proposed

« back to all changes in this revision

Viewing changes to maintenance/importTextFile.php

  • Committer: Package Import Robot
  • Author(s): Thorsten Glaser
  • Date: 2014-03-28 09:56:29 UTC
  • mfrom: (1.3.14)
  • Revision ID: package-import@ubuntu.com-20140328095629-1526y9tchdd507id
Tags: 1:1.19.14+dfsg-1
* New upstream security fix release (Closes: #742857):
  - (bug 62497) SECURITY: Add CSRF token on Special:ChangePassword
  - (bug 62467) Set a title for the context during import on the cli
* Use upstream-provided signing key bundle

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
                        echo( "\nUsing title '" . $title->getPrefixedText() . "'..." );
46
46
                        if ( !$title->exists() || !isset( $options['nooverwrite'] ) ) {
 
47
                                RequestContext::getMain()->setTitle( $title );
47
48
 
48
49
                                $text = file_get_contents( $filename );
49
50
                                $user = isset( $options['user'] ) ? $options['user'] : 'Maintenance script';