}
# Namespace or interwiki prefix
- $firstPass = true;
$prefixRegexp = "/^(.+?)_*:_*(.*)$/S";
do {
$m = array();
}
}
} elseif ( Interwiki::isValidInterwiki( $p ) ) {
- if ( !$firstPass ) {
- //TODO: get rid of global state!
- # Can't make a local interwiki link to an interwiki link.
- # That's just crazy!
- throw new MalformedTitleException( 'Interwiki prefix found in title: ' . $text );
- }
-
# Interwiki link
$dbkey = $m[2];
$parts['interwiki'] = $this->language->lc( $p );
throw new MalformedTitleException( 'Local interwiki with empty title: ' . $text );
}
$parts['interwiki'] = '';
- $firstPass = false;
# Do another namespace split...
continue 2;