Use Sanitizer::mergeAttributes() for Linker::linkAttribs(). Also clean up whitespace...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Wed, 30 Jul 2008 22:02:23 +0000 (22:02 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Wed, 30 Jul 2008 22:02:23 +0000 (22:02 +0000)
commitdc07d4785f05e6d63c2d2f24728a1f1954994292
tree67c8d4047a6428ba548a85c45da52076d8cb46e9
parent76c30983c95f57a827cdc2d71d10a8864ff272c9
Use Sanitizer::mergeAttributes() for Linker::linkAttribs().  Also clean up whitespace for mergeAttributes and reduce number of nested functions, and don't try to merge non-string 'class' arguments.  This last point is necessary so I can have 'class' => false work right for linkAttribs(), but it makes sense.  Parser tests pass.
includes/Linker.php
includes/Sanitizer.php