diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
commit | 222b01f5169f1c7e69762e0e8904c24f78f71882 (patch) | |
tree | 8e932e12546bb991357ec48eb1638d1770be7a35 /maintenance/importTextFile.php | |
parent | 00ab76a6b686e98a914afc1975812d2b1aaa7016 (diff) |
update to MediaWiki 1.16.0
Diffstat (limited to 'maintenance/importTextFile.php')
-rw-r--r-- | maintenance/importTextFile.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/maintenance/importTextFile.php b/maintenance/importTextFile.php index bfb852e0..955d01f4 100644 --- a/maintenance/importTextFile.php +++ b/maintenance/importTextFile.php @@ -11,7 +11,7 @@ $options = array( 'help', 'nooverwrite', 'norc' ); $optionsWithArgs = array( 'title', 'user', 'comment' ); -require_once( 'commandLine.inc' ); +require_once( dirname(__FILE__) . '/commandLine.inc' ); echo( "Import Text File\n\n" ); if( count( $args ) < 1 || isset( $options['help'] ) ) { @@ -23,7 +23,7 @@ if( count( $args ) < 1 || isset( $options['help'] ) ) { if( is_file( $filename ) ) { $title = isset( $options['title'] ) ? $options['title'] : titleFromFilename( $filename ); - $title = Title::newFromUrl( $title ); + $title = Title::newFromURL( $title ); if( is_object( $title ) ) { |