r37004 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37003‎ | r37004 | r37005 >
Date:20:21, 3 July 2008
Author:aaron
Status:old
Tags:
Comment:
* Doc typo
* Explicit visibility
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedArticle.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php
@@ -13,7 +13,7 @@
1414 * Get the FlaggedArticle instance associated with $wgArticle/$wgTitle,
1515 * or false if there isn't such a title
1616 */
17 - static function getGlobalInstance() {
 17+ public static function getGlobalInstance() {
1818 global $wgArticle, $wgTitle;
1919 if ( !empty( $wgArticle ) ) {
2020 return self::getInstance( $wgArticle );
@@ -26,9 +26,9 @@
2727
2828 /**
2929 * 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.
3131 */
32 - static function getTitleInstance( $title ) {
 32+ public static function getTitleInstance( $title ) {
3333 if ( !isset( $title->flaggedRevsArticle ) ) {
3434 $article = MediaWiki::articleFromTitle( $title );
3535 $article->flaggedRevsArticle = new FlaggedArticle( $article );
@@ -41,7 +41,7 @@
4242 * Get an instance of FlaggedArticle for a given Article or Title object
4343 * @param Article $article
4444 */
45 - static function getInstance( $article ) {
 45+ public static function getInstance( $article ) {
4646 # If instance already cached, return it!
4747 if( isset($article->flaggedRevsArticle) ) {
4848 return $article->flaggedRevsArticle;

Status & tagging log