Index: trunk/extensions/ApprovedRevs/ApprovedRevs_body.php |
— | — | @@ -172,12 +172,18 @@ |
173 | 173 | * extensions such as Semantic MediaWiki; and logs the action. |
174 | 174 | */ |
175 | 175 | public static function unsetApproval( $title ) { |
| 176 | + global $egApprovedRevsBlankIfUnapproved; |
| 177 | + |
176 | 178 | self::deleteRevisionApproval( $title ); |
177 | 179 | |
178 | 180 | $parser = new Parser(); |
179 | 181 | $parser->setTitle( $title ); |
180 | | - $article = new Article( $title ); |
181 | | - $text = $article->getContent(); |
| 182 | + if ( $egApprovedRevsBlankIfUnapproved ) { |
| 183 | + $text = ''; |
| 184 | + } else { |
| 185 | + $article = new Article( $title ); |
| 186 | + $text = $article->getContent(); |
| 187 | + } |
182 | 188 | $options = new ParserOptions(); |
183 | 189 | $parser->parse( $text, $title, $options ); |
184 | 190 | $u = new LinksUpdate( $title, $parser->getOutput() ); |