* Translate the block expiry date
* (bug 28630) Add iwlinks, langlinks, redirect to
RefreshLinks::deleteLinksFromNonexistent
+* (bug 29797) Error: "Tried to load block with invalid type" when subpages
+ are disabled for user pages.
=== API changes in 1.19 ===
* BREAKING CHANGE: action=watch now requires POST and token.
$conds = array( 'ipb_address' => array() );
}
- # Be aware that the != '' check is explicit, since empty values will be passed by some callers.
+ # Be aware that the != '' check is explicit, since empty values will be
+ # passed by some callers (bug 29116)
if( $vagueTarget != ''){
list( $target, $type ) = self::parseTarget( $vagueTarget );
switch( $type ) {
return array( null, null );
}
+ # Consider the possibility that this is not a username at all
+ # but actually an old subpage (bug #29797)
+ if( strpos( $target, '/' ) !== false ){
+ # An old subpage, drill down to the user behind it
+ $parts = explode( '/', $target );
+ $target = $parts[0];
+ }
+
$userObj = User::newFromName( $target );
if ( $userObj instanceof User ) {
# Note that since numbers are valid usernames, a $target of "12345" will be