Index: trunk/phase3/maintenance/importTextFile.php |
— | — | @@ -24,19 +24,19 @@ |
25 | 25 | |
26 | 26 | $title = isset( $options['title'] ) ? $options['title'] : titleFromFilename( $filename ); |
27 | 27 | $title = Title::newFromUrl( $title ); |
28 | | - echo( "\nUsing title '" . $title->getPrefixedText() . "'..." ); |
29 | 28 | |
30 | 29 | if( is_object( $title ) ) { |
31 | 30 | |
| 31 | + echo( "\nUsing title '" . $title->getPrefixedText() . "'..." ); |
32 | 32 | if( !$title->exists() || !isset( $options['nooverwrite'] ) ) { |
33 | 33 | |
34 | 34 | $text = file_get_contents( $filename ); |
35 | 35 | $user = isset( $options['user'] ) ? $options['user'] : 'Maintenance script'; |
36 | 36 | $user = User::newFromName( $user ); |
37 | | - echo( "\nUsing username '" . $user->getName() . "'..." ); |
38 | 37 | |
39 | 38 | if( is_object( $user ) ) { |
40 | 39 | |
| 40 | + echo( "\nUsing username '" . $user->getName() . "'..." ); |
41 | 41 | $wgUser =& $user; |
42 | 42 | $comment = isset( $options['comment'] ) ? $options['comment'] : 'Importing text file'; |
43 | 43 | $flags = 0 | ( isset( $options['norc'] ) ? EDIT_SUPPRESS_RC : 0 ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -430,6 +430,7 @@ |
431 | 431 | images which do not specify width and height attributes. |
432 | 432 | * (bug 15027) Internet domain names and IP addresses can now be indexed and |
433 | 433 | searched sensibly with the default MySQL search backend. |
| 434 | +* (bug 11733) Fixed parameter validation in importTextFile.php |
434 | 435 | |
435 | 436 | === API changes in 1.14 === |
436 | 437 | |