Index: trunk/extensions/Collection/Collection.php |
— | — | @@ -368,7 +368,9 @@ |
369 | 369 | if ( $t->isRedirect() ) { |
370 | 370 | $a = new Article( $t, 0 ); |
371 | 371 | $t = $a->followRedirect(); |
372 | | - $title = $t->getPrefixedText(); |
| 372 | + if ( $t instanceof Title ) { |
| 373 | + $title = $t->getPrefixedText(); |
| 374 | + } |
373 | 375 | } |
374 | 376 | if ( CollectionSession::findArticle( $title ) == - 1 ) { |
375 | 377 | $result['action'] = 'add'; |