(bug 15737) Fix notices while expanding using PPCustomFrame. Patch by Juliano F....
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Mon, 3 Nov 2008 00:04:33 +0000 (00:04 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Mon, 3 Nov 2008 00:04:33 +0000 (00:04 +0000)
commit792172840a33988480e5377f4b44f6f691171714
tree761cc76dc47ce351fd64e36e7ae156971b8b5011
parentc75387e7ee602d859da16fe0dfe209746cbf2e80
(bug 15737) Fix notices while expanding using PPCustomFrame. Patch by Juliano F. Ravasi.

In PPCustomFrame_DOM and PPCustomFrame_Hash, no checking is performed in getArgument() when arguments not contained in frames are requested, causing PHP undefined variable error messages. This happens while expanding templates using a custom frame.

A simple check is needed using isset(), just like those found in PPFrame_* and PPTemplateFrame_*.
RELEASE-NOTES
includes/parser/Preprocessor_DOM.php
includes/parser/Preprocessor_Hash.php