Moved EditPage::sectionAnchor() and EditPage::pseudoParseSectionAnchor() to Parser...
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 8 Sep 2007 02:08:08 +0000 (02:08 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 8 Sep 2007 02:08:08 +0000 (02:08 +0000)
commit87bd9eaa2a4c22fe7220a8590ff43dc1022344e0
tree59309217558c0948ee7efbe02237be149003082e
parent3a57f51b05addc650179879acb54362dea49070d
Moved EditPage::sectionAnchor() and EditPage::pseudoParseSectionAnchor() to Parser, names slightly changed. Replaced O(N^2) regexes with calls to StringUtils. This should fix the breakage of ActiveAbstract extension, which was calling EditPage::sectionAnchor() statically.

We could probably all benefit from implementing a general rule *not* to call random non-static functions statically. This style is very vulnerable to breakage on later refactoring.
includes/EditPage.php
includes/Parser.php