Index: trunk/extensions/ActiveAbstract/AbstractFilter.php |
— | — | @@ -201,6 +201,8 @@ |
202 | 202 | * @fixme check for explicit __NOTOC__ |
203 | 203 | */ |
204 | 204 | function _sectionLinks( $rev ) { |
| 205 | + global $wgParser; |
| 206 | + |
205 | 207 | $text = Revision::getRevisionText( $rev ); |
206 | 208 | $secs = |
207 | 209 | preg_split( |
— | — | @@ -213,7 +215,7 @@ |
214 | 216 | $inside = preg_replace( '/^=+\s*(.*?)\s*=+/', '$1', $secs[$i] ); |
215 | 217 | $stripped = $this->_stripMarkup( $inside ); // strip internal markup and <h[1-6]> |
216 | 218 | $header = UtfNormal::cleanUp( $stripped ); |
217 | | - $anchor = EditPage::sectionAnchor( $header ); |
| 219 | + $anchor = $wgParser->guessSectionNameFromWikiText( $header ); |
218 | 220 | $url = $this->title->getCanonicalUrl() . $anchor; |
219 | 221 | $headers[$header] = $url; |
220 | 222 | } |