Titles are usually reported as "missing" if they
are not found, but if the title contains invalid
characters the title is reported as "invalid".
This changeset will make the page name normalization
also check if the "invalid" marker is set.
Change-Id: I86d432e8ea00c97891fb7849468caac6120252c6
$page = static::extractPageRecord( $data, $pageName );
if ( isset( $page['missing'] ) ) {
- wfDebugLog( "MediaWikiSite", "call to <$url> returned a missing page title! " . $ret );
+ wfDebugLog( "MediaWikiSite", "call to <$url> returned a marker for a missing page title! " . $ret );
+ return false;
+ }
+
+ if ( isset( $page['invalid'] ) ) {
+ wfDebugLog( "MediaWikiSite", "call to <$url> returned a marker for an invalid page title! " . $ret );
return false;
}