Index: trunk/phase3/includes/LogPage.php |
— | — | @@ -241,6 +241,15 @@ |
242 | 242 | $rv = "$action"; |
243 | 243 | } |
244 | 244 | } |
| 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. |
245 | 254 | if( $filterWikilinks ) { |
246 | 255 | $rv = str_replace( "[[", "", $rv ); |
247 | 256 | $rv = str_replace( "]]", "", $rv ); |