Last modified: 2011-06-28 05:52:35 UTC
Running r90927 of trunk and WikiLove, when a user goes to put in "{{FULLPAGENAME}}" or "{{subst:BASEPAGENAME}}" or some combination of magic like this, the preview renders the result of such magic as "API". After the WikiLove message is submitted, the expected behavior occurs (the text is substituted and/or the variable is appropriately rendered). It appears to only break during preview.
WikiLove is using the API to do the parsing: api.php?action=parse&text=blahblah&prop=text&pst=true Could be an API bug, or we're not calling it correctly.
It looks like most magic words work fine, for example {{CURRENTYEAR}}. Apparently the parser can't deal with {{FULLPAGENAME}} or {{BASEPAGENAME}} since it's not actually being called from a page, it's being called from the API. Just need to have the AJAX call include a title parameter for the page and that should fix it...
Fixed in r90940.