Page MenuHomePhabricator

PATCH.no_links_during_pst

Authored By
bzimport
Nov 21 2014, 9:07 PM
Size
660 B
Referenced Files
None
Subscribers
None

PATCH.no_links_during_pst

Index: includes/parser/Parser.php
===================================================================
--- includes/parser/Parser.php (revision 62187)
+++ includes/parser/Parser.php (working copy)
@@ -4032,12 +4032,6 @@
'~~~' => $sigText
) );
- # Links of the form [[|<blah>]] or [[<blah>|]] perform pipe tricks
- # Note this only allows the # in the position it works.
- global $wgLegalTitleChars;
- $pipeTrickRe = "/\[\[(?:(\\|)([$wgLegalTitleChars]+)|([#$wgLegalTitleChars]+)\\|)\]\]/";
- $text = preg_replace_callback( $pipeTrickRe, array( $this, 'pstPipeTrickCallback' ), $text );
-
# Trim trailing whitespace
$text = rtrim( $text );

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2227
Default Alt Text
PATCH.no_links_during_pst (660 B)

Event Timeline