From: Roan Kattouw Date: Thu, 4 Jan 2018 20:27:11 +0000 (+0100) Subject: Follow-up 6f07389ef2eb: fix variable name X-Git-Tag: 1.31.0-rc.0~997 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=7f68220db69e99b374557499ccebaa710c89c750 Follow-up 6f07389ef2eb: fix variable name Caused Notice: Undefined variable: text Bug: T184123 Change-Id: I950a02134b145a2928af33995ca37a6965f265e4 --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index b871735121..f41ee01dce 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -5787,9 +5787,9 @@ class Parser { global $wgFragmentMode; if ( isset( $wgFragmentMode[1] ) && $wgFragmentMode[1] === 'legacy' ) { // ForAttribute() and ForLink() are the same for legacy encoding - $id = Sanitizer::escapeIdForAttribute( $text, Sanitizer::ID_FALLBACK ); + $id = Sanitizer::escapeIdForAttribute( $sectionName, Sanitizer::ID_FALLBACK ); } else { - $id = Sanitizer::escapeIdForLink( $text ); + $id = Sanitizer::escapeIdForLink( $sectionName ); } return "#$id";