Index: trunk/extensions/DataTransfer/specials/DT_ImportCSV.php |
— | — | @@ -169,6 +169,10 @@ |
170 | 170 | $job_params['edit_summary'] = wfMsgForContent( 'dt_import_editsummary', 'CSV' ); |
171 | 171 | foreach ( $pages as $page ) { |
172 | 172 | $title = Title::newFromText( $page->getName() ); |
| 173 | + if ( is_null( $title ) ) { |
| 174 | + $text .= '<p>' . wfMsg( 'img-auth-badtitle', $page->getName() ) . "</p>\n"; |
| 175 | + continue; |
| 176 | + } |
173 | 177 | $job_params['text'] = $page->createText(); |
174 | 178 | $jobs[] = new DTImportJob( $title, $job_params ); |
175 | 179 | } |