Index: trunk/extensions/RdfRedland/test/MwRdfTest.php |
— | — | @@ -283,7 +283,7 @@ |
284 | 284 | public function createTestArticle( $title_text, $text, |
285 | 285 | $cats, $user, |
286 | 286 | $contribs = array() ) { |
287 | | - $title = Title::newFromText( $title_text ); |
| 287 | + $title = new Title( $title_text ); |
288 | 288 | $title->setParentCategories( $cats ); |
289 | 289 | $article = new Article( $title); |
290 | 290 | $article->setContent( $text ); |
— | — | @@ -295,7 +295,7 @@ |
296 | 296 | } |
297 | 297 | |
298 | 298 | public function createTalkPage() { |
299 | | - $title = Title::newFromText( "Talk:Modeling test article"); |
| 299 | + $title = new Title( "Talk:Modeling test article"); |
300 | 300 | $user = self::createUserWithRealName(); |
301 | 301 | $article = new Article( $title ); |
302 | 302 | $article->setContent( " " ); |
— | — | @@ -305,7 +305,7 @@ |
306 | 306 | |
307 | 307 | public function createStorageTestArticle() { |
308 | 308 | $text = self::InPageWikitext(); |
309 | | - $title = Title::newFromText( "Storage test article"); |
| 309 | + $title = new Title( "Storage test article"); |
310 | 310 | $cats = array( "Category:Red", "Category:Blue" ); |
311 | 311 | $title->setParentCategories( $cats ); |
312 | 312 | $article = new Article( $title ); |
— | — | @@ -317,7 +317,7 @@ |
318 | 318 | |
319 | 319 | public function createspecialpagetestarticle() { |
320 | 320 | $text = self::InPageWikitext(); |
321 | | - $title = Title::newFromText( "Modeling test article"); |
| 321 | + $title = new Title( "Modeling test article"); |
322 | 322 | $cats = array( "Category:Red", "Category:Blue" ); |
323 | 323 | $title->setParentCategories( $cats ); |
324 | 324 | $article = new Article( $title ); |
— | — | @@ -328,7 +328,7 @@ |
329 | 329 | } |
330 | 330 | |
331 | 331 | public function createTestTitle( $text ) { |
332 | | - return Title::newFromText( $text ); |
| 332 | + return new Title( $text ); |
333 | 333 | } |
334 | 334 | |
335 | 335 | public function createExpectedModel( $text ) { |
Index: trunk/extensions/RdfRedland/test/includes/Title.php |
— | — | @@ -50,11 +50,11 @@ |
51 | 51 | public static function newFromText( $text) { |
52 | 52 | if ( ! $text ) return null; |
53 | 53 | $text = str_replace( '_', ' ', $text); |
54 | | - return Title::newFromText( $text ); |
| 54 | + return new Title( $text ); |
55 | 55 | } |
56 | 56 | |
57 | 57 | public static function makeTitle( $ns, $text ) { |
58 | | - return Title::makeTitle( $ns, $text ); |
| 58 | + return new Title( "$ns:$text" ); |
59 | 59 | } |
60 | 60 | |
61 | 61 | public function __construct( $text ) { |