Index: trunk/extensions/ApprovedRevs/ApprovedRevs_body.php |
— | — | @@ -151,10 +151,11 @@ |
152 | 152 | */ |
153 | 153 | public static function setApprovedRevID( $title, $rev_id, $is_latest = false ) { |
154 | 154 | self::saveApprovedRevIDInDB( $title, $rev_id ); |
155 | | - // if the revision being approved is definitely the latest |
156 | | - // one, there's no need to call the parser on it |
| 155 | + $parser = new Parser(); |
| 156 | + |
| 157 | + // If the revision being approved is definitely the latest |
| 158 | + // one, there's no need to call the parser on it. |
157 | 159 | if ( !$is_latest ) { |
158 | | - $parser = new Parser(); |
159 | 160 | $parser->setTitle( $title ); |
160 | 161 | $article = new Article( $title, $rev_id ); |
161 | 162 | $text = $article->getContent(); |