Catrope has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/402109 )

Change subject: Follow-up 6f07389ef2eb: fix variable name
......................................................................

Follow-up 6f07389ef2eb: fix variable name

Caused Notice: Undefined variable: text

Bug: T184123
Change-Id: I950a02134b145a2928af33995ca37a6965f265e4
---
M includes/parser/Parser.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/09/402109/1

diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php
index b871735..f41ee01 100644
--- a/includes/parser/Parser.php
+++ b/includes/parser/Parser.php
@@ -5787,9 +5787,9 @@
                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";

-- 
To view, visit https://gerrit.wikimedia.org/r/402109
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I950a02134b145a2928af33995ca37a6965f265e4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Catrope <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to