Fixed odd breakage of templates involving '<span class="{{foo}}">{{bar}}</span>'...
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 20 Aug 2005 15:28:53 +0000 (15:28 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 20 Aug 2005 15:28:53 +0000 (15:28 +0000)
commit5eb9056704a935e639a0daee881b24c2fae7033a
tree6a7bad5d1a9821706598f312968e0e3d7e63e70d
parenteea00a79be889ecf1b772139745482240af28463
Fixed odd breakage of templates involving '<span class="{{foo}}">{{bar}}</span>'. {{bar}} was expanded without any arguments passed from the parent page. The problem was $this->mAssocArgs being overwritten by the call to replaceVariables() from within Sanitizer::removeHTMLtags(), and thus subtly corrupted for the subsequent call from braceSubstitution() itself. I've forgotten why I made that a class member in the first place, but making it a local instead doesn't break any parser tests, so it's a sufficient solution as far as I'm concerned.
includes/Parser.php