r48004 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48003‎ | r48004 | r48005 >
Date:01:28, 4 March 2009
Author:werdna
Status:ok
Tags:
Comment:
Document r7855
Modified paths:
  • /trunk/phase3/includes/LogPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/LogPage.php
@@ -241,6 +241,15 @@
242242 $rv = "$action";
243243 }
244244 }
 245+
 246+ // For the perplexed, this feature was added in r7855 by Erik.
 247+ // The feature was added because we liked adding [[$1]] in our log entries
 248+ // but the log entries are parsed as Wikitext on RecentChanges but as HTML
 249+ // on Special:Log. The hack is essentially that [[$1]] represented a link
 250+ // to the title in question. The first parameter to the HTML version (Special:Log)
 251+ // is that link in HTML form, and so this just gets rid of the ugly [[]].
 252+ // However, this is a horrible hack and it doesn't work like you expect if, say,
 253+ // you want to link to something OTHER than the title of the log entry.
245254 if( $filterWikilinks ) {
246255 $rv = str_replace( "[[", "", $rv );
247256 $rv = str_replace( "]]", "", $rv );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r78551) omit "N Image:Bla.jpg" entry from Recent Changes for file uploads...eloquence13:13, 24 March 2005

Status & tagging log