Offer hint for common "null title" import error.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Mon, 2 Oct 2006 14:56:09 +0000 (14:56 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Mon, 2 Oct 2006 14:56:09 +0000 (14:56 +0000)
includes/SpecialImport.php

index d1d9e5e..fa0ee7e 100644 (file)
@@ -240,7 +240,7 @@ class WikiRevision {
                if( is_object( $title ) ) {
                        $this->title = $title;
                } elseif( is_null( $title ) ) {
-                       throw new MWException( "WikiRevision given a null title in import." );
+                       throw new MWException( "WikiRevision given a null title in import. You may need to adjust \$wgLegalTitleChars." );
                } else {
                        throw new MWException( "WikiRevision given non-object title in import." );
                }