Index: trunk/extensions/Collection/Collection.hooks.php |
— | — | @@ -158,7 +158,7 @@ |
159 | 159 | // we need to re-construct a title object from the request, because |
160 | 160 | // the "subpage" (i.e. "par") part has been stripped off by SpecialPage.php |
161 | 161 | // in $wgTitle. |
162 | | - $origTitle = Title::newFromUrl($wgRequest->getVal('title')); |
| 162 | + $origTitle = Title::newFromText($wgRequest->getVal('title')); |
163 | 163 | if( !is_null( $origTitle ) |
164 | 164 | && $origTitle->getLocalUrl() == SkinTemplate::makeSpecialUrl( 'Book' ) ) { |
165 | 165 | return; |
Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -57,7 +57,7 @@ |
58 | 58 | } |
59 | 59 | $title_url = $wgRequest->getVal( 'arttitle', '' ); |
60 | 60 | $oldid = $wgRequest->getInt( 'oldid', 0 ); |
61 | | - $title = Title::newFromURL( $title_url ); |
| 61 | + $title = Title::newFromText( $title_url ); |
62 | 62 | $this->addArticle( $title, $oldid ); |
63 | 63 | if ( $oldid == 0 ) { |
64 | 64 | $redirectURL = $title->getFullURL(); |
— | — | @@ -70,7 +70,7 @@ |
71 | 71 | case 'remove_article/': |
72 | 72 | $title_url = $wgRequest->getVal( 'arttitle', '' ); |
73 | 73 | $oldid = $wgRequest->getInt( 'oldid', 0 ); |
74 | | - $title = Title::newFromURL( $title_url ); |
| 74 | + $title = Title::newFromText( $title_url ); |
75 | 75 | self::removeArticle( $title, $oldid ); |
76 | 76 | if ( $oldid == 0 ) { |
77 | 77 | $redirectURL = $title->getFullURL(); |