CoreParserFunctions::anchorencode should return a string
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 27 Mar 2013 16:53:14 +0000 (12:53 -0400)
committerDemon <chadh@wikimedia.org>
Wed, 27 Mar 2013 17:08:24 +0000 (17:08 +0000)
commit5b17f233cdb6f746e81d8fbe6ae3f334904960c4
tree2525d1b527311108d2d25a43f2d703fa4e08733e
parent6da93fc6f696383585a3f1c4e69ba7994c01a0e5
CoreParserFunctions::anchorencode should return a string

CoreParserFunctions::anchorencode incorrectly returns false rather than
the empty string when passed an empty string.

A simple cast fixes it; this likely wasn't noticed before since PHP was
automatically doing the cast anyway when the return value was merged
into wikitext.

Bug: 46608
Change-Id: I97556dbc4dcc1f102f6fed499d43dada388cdc5d
includes/parser/CoreParserFunctions.php