From 7f68220db69e99b374557499ccebaa710c89c750 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Thu, 4 Jan 2018 21:27:11 +0100 Subject: [PATCH] Follow-up 6f07389ef2eb: fix variable name Caused Notice: Undefined variable: text Bug: T184123 Change-Id: I950a02134b145a2928af33995ca37a6965f265e4 --- includes/parser/Parser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; -- 2.20.1