Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -147,15 +147,6 @@ |
148 | 148 | return empty(self::$dimensions); |
149 | 149 | } |
150 | 150 | |
151 | | - /** |
152 | | - * Do anons see the stable version by default? |
153 | | - * @returns bool |
154 | | - */ |
155 | | - public static function publicViewStableByDefault() { |
156 | | - global $wgFlaggedRevsOverride, $wgFlaggedRevsExceptions; |
157 | | - return ($wgFlaggedRevsOverride && !in_array('*',$wgFlaggedRevsExceptions) ); |
158 | | - } |
159 | | - |
160 | 151 | ################# Parsing functions ################# |
161 | 152 | |
162 | 153 | /** |
— | — | @@ -2121,7 +2112,7 @@ |
2122 | 2113 | public static function isFileCacheable( $article ) { |
2123 | 2114 | $fa = FlaggedArticle::getInstance( $article ); |
2124 | 2115 | # If the stable is the default, and we are viewing it...cache it! |
2125 | | - if( self::publicViewStableByDefault() ) { |
| 2116 | + if( $fa->showStableByDefault() ) { |
2126 | 2117 | return ( $fa->pageOverride() && $fa->getStableRev( true ) ); |
2127 | 2118 | # If the draft is the default, and we are viewing it...cache it! |
2128 | 2119 | } else { |