X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FLinker.php;h=9f578a925ff7d6e32ae306ed972dcc6613a38e99;hb=c7d2fb7f7241b0f8a3849e87127a9204e5a19ef3;hp=7d88f25c679b56bea6b32f4cf032b55629724cab;hpb=d434013a98e7dd517067f5ca9c263b1d4d8bd6ee;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Linker.php b/includes/Linker.php index 7d88f25c67..9f578a925f 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -25,7 +25,7 @@ * for primarily page content: links, embedded images, table of contents. Links * are also used in the skin. * - * @todo: turn this into a legacy interface for HtmlPageLinkRenderer and similar services. + * @todo turn this into a legacy interface for HtmlPageLinkRenderer and similar services. * * @ingroup Skins */ @@ -272,7 +272,7 @@ class Linker { * Returns the Url used to link to a Title * * @param Title $target - * @param array $query query parameters + * @param array $query Query parameters * @param array $options * @return string */ @@ -937,7 +937,7 @@ class Linker { $query = '', $unused1 = '', $unused2 = '', $time = false ) { global $wgEnableUploads, $wgUploadMissingFileUrl, $wgUploadNavigationUrl; - if ( ! $title instanceof Title ) { + if ( !$title instanceof Title ) { return "" . htmlspecialchars( $label ); } wfProfileIn( __METHOD__ ); @@ -1379,7 +1379,7 @@ class Linker { . '' . $auto . $post . ''; } return $comment; - }, + }, $comment ); } @@ -1418,7 +1418,11 @@ class Linker { # fix up urlencoded title texts (copied from Parser::replaceInternalLinks) if ( strpos( $match[1], '%' ) !== false ) { - $match[1] = str_replace( array( '<', '>' ), array( '<', '>' ), rawurldecode( $match[1] ) ); + $match[1] = str_replace( + array( '<', '>' ), + array( '<', '>' ), + rawurldecode( $match[1] ) + ); } # Handle link renaming [[foo|text]] will show link as "text"