Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | * Get the FlaggedArticle instance associated with $wgArticle/$wgTitle, |
15 | 15 | * or false if there isn't such a title |
16 | 16 | */ |
17 | | - static function getGlobalInstance() { |
| 17 | + public static function getGlobalInstance() { |
18 | 18 | global $wgArticle, $wgTitle; |
19 | 19 | if ( !empty( $wgArticle ) ) { |
20 | 20 | return self::getInstance( $wgArticle ); |
— | — | @@ -26,9 +26,9 @@ |
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Get a FlaggedArticle for a given title. |
30 | | - * getInstance() is preferred if you have an Article avaiable. |
| 30 | + * getInstance() is preferred if you have an Article available. |
31 | 31 | */ |
32 | | - static function getTitleInstance( $title ) { |
| 32 | + public static function getTitleInstance( $title ) { |
33 | 33 | if ( !isset( $title->flaggedRevsArticle ) ) { |
34 | 34 | $article = MediaWiki::articleFromTitle( $title ); |
35 | 35 | $article->flaggedRevsArticle = new FlaggedArticle( $article ); |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | * Get an instance of FlaggedArticle for a given Article or Title object |
43 | 43 | * @param Article $article |
44 | 44 | */ |
45 | | - static function getInstance( $article ) { |
| 45 | + public static function getInstance( $article ) { |
46 | 46 | # If instance already cached, return it! |
47 | 47 | if( isset($article->flaggedRevsArticle) ) { |
48 | 48 | return $article->flaggedRevsArticle; |