@@ 515-519 (lines=5) @@ | ||
512 | // @todo FIXME: Redirects broken due to this call |
|
513 | $bits = explode( '/', $title->getDBkey(), 2 ); |
|
514 | $name = $bits[0]; |
|
515 | if ( !isset( $bits[1] ) ) { // bug 2087 |
|
516 | $par = null; |
|
517 | } else { |
|
518 | $par = $bits[1]; |
|
519 | } |
|
520 | ||
521 | $page = self::getPage( $name ); |
|
522 | if ( !$page ) { |
|
@@ 349-353 (lines=5) @@ | ||
346 | return [ null, null ]; |
|
347 | } |
|
348 | ||
349 | if ( !isset( $bits[1] ) ) { // bug 2087 |
|
350 | $par = null; |
|
351 | } else { |
|
352 | $par = $bits[1]; |
|
353 | } |
|
354 | ||
355 | return [ $name, $par ]; |
|
356 | } |