X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FCoreLinkFunctions.php;h=1cabf766aabeaa32662ddc9a88d32261f936d564;hb=53cd876eb40653a510f8cd84d768a7ad158daa5d;hp=4bfa9d35da5fa42e0a7dbf97e1440635c91d7de0;hpb=5343b3eb3e4e11634be5e161120d879cd80bf70c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/CoreLinkFunctions.php b/includes/parser/CoreLinkFunctions.php index 4bfa9d35da..1cabf766aa 100644 --- a/includes/parser/CoreLinkFunctions.php +++ b/includes/parser/CoreLinkFunctions.php @@ -47,15 +47,15 @@ class CoreLinkFunctions { */ static function defaultLinkHook( $parser, $holders, $markers, Title $title, $titleText, &$displayText = null, &$leadingColon = false ) { - if( isset($displayText) && $markers->findMarker( $displayText ) ) { + if( isset( $displayText ) && $markers->findMarker( $displayText ) ) { # There are links inside of the displayText # For backwards compatibility the deepest links are dominant so this # link should not be handled - $displayText = $markers->expand($displayText); + $displayText = $markers->expand( $displayText ); # Return false so that this link is reverted back to WikiText return false; } - return $holders->makeHolder( $title, isset($displayText) ? $displayText : $titleText, array(), '', '' ); + return $holders->makeHolder( $title, isset( $displayText ) ? $displayText : $titleText, array(), '', '' ); } /** @@ -73,15 +73,15 @@ class CoreLinkFunctions { global $wgContLang; # When a category link starts with a : treat it as a normal link if( $leadingColon ) return true; - if( isset($sortText) && $markers->findMarker( $sortText ) ) { + if( isset( $sortText ) && $markers->findMarker( $sortText ) ) { # There are links inside of the sortText # For backwards compatibility the deepest links are dominant so this # link should not be handled - $sortText = $markers->expand($sortText); + $sortText = $markers->expand( $sortText ); # Return false so that this link is reverted back to WikiText return false; } - if( !isset($sortText) ) $sortText = $parser->getDefaultSort(); + if( !isset( $sortText ) ) $sortText = $parser->getDefaultSort(); $sortText = Sanitizer::decodeCharReferences( $sortText ); $sortText = str_replace( "\n", '', $sortText ); $sortText = $wgContLang->convertCategoryKey( $sortText );