Hi Hermann, That was done on purpose - the idea was that #formredlink has two different behaviors, depending on whether or not the page in question exists. If it doesn't, then of course you see a red link, pointing to a form, with text that possibly looks like "Create this page". If it does, then there's just a normal link to that page, and users wouldn't know that there's anything special going on behind the scenes. What's your use case for wanting the same link text to show up whether or not the page exists? And what could such text be?
-Yaron On Thu, May 28, 2015 at 10:24 AM, Hermann Schwärzler < hermann.schwaerz...@uibk.ac.at> wrote: > Hi, > > while using the "link text" parameter of #formredlink I noticed that > this parameter gets ignored when the page specified in the "target" > parameter exists. > > The "shortcut" in the code for this case returns > Linker::link( $targetTitle ) i.e. without specifying a link text which > in turn causes Linker::link to use $targetTitle as link text. > > Find attached a small patch that solved the problem for me. I am not > sure if the htmlspecialchars() call is really necessary but I guess it > doesn't hurt, does it? > > Greetings > Hermann > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Semediawiki-devel mailing list > Semediawiki-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel > > -- WikiWorks · MediaWiki Consulting · http://wikiworks.com
------------------------------------------------------------------------------
_______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel