[Mediawiki-l] Problem with $1 substitution in search results header

Elliott F. Cable ecable at avxw.com
Fri Jun 16 16:27:52 UTC 2006


My users are complaining that this isn't working - here's the  
conversation start:

> ==$1 not working==
> Apparently, $1's supposed to be replaced with the page title,  
> however it doesn't seem to work. See [[$1 |this is a $1]] for  
> instance. This makes the "create this article" link on a [http:// 
> ddo.enterwiki.net/page/Special:Search? 
> fulltext=Search&search=testingstuff search page] not working.  
> [[User:Tihocan|Tihocan]] 11:15, June 16, 2006 (EDT)
>
> :In the system in some places, variables are sent to the system  
> messages - say <tt><?php wfMsgWikiHTML ( 'notfound', 'The term you  
> searched for' ) ?></tt> - in that case, the $1 would be replaced  
> with 'The term you searched for' so the final output would be  
> <tt><nowiki>* You can [[The term you searched for|create this  
> article]]</nowiki></tt>. I've sent a mail into the mailing list  
> about it, waiting for a reply - it's over my head. I hacked for at  
> least an hour at this particular bug, but no go. ~~~~

Any idea what I can do to fix this? Only broke since the upgrade to  
1.6...



More information about the MediaWiki-l mailing list