Index: trunk/extensions/TrustedMath/TrustedMath_body.php |
— | — | @@ -17,8 +17,8 @@ |
18 | 18 | * @param Title $title Title of the article |
19 | 19 | */ |
20 | 20 | public static function newFromTitle( $title ) { |
21 | | - $text = Article::newFromId( $title->getArticleId() )->getRawText(); |
22 | | - return new self( $text ); |
| 21 | + $article = new Article( $title, 0 ); |
| 22 | + return new self( $article->getRawText() ); |
23 | 23 | } |
24 | 24 | |
25 | 25 | protected $text = null; |