Siebrand has uploaded a new change for review.
https://gerrit.wikimedia.org/r/104368
Change subject: Replace usage of deprecated Title::escapeLocalURL()
......................................................................
Replace usage of deprecated Title::escapeLocalURL()
Change-Id: I13d932a36f3e9057a114bad67aa38319b1ef089c
---
M SpecialSportsManagerLogo.php
M SpecialSportsTeamsManagerLogo.php
2 files changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SportsTeams
refs/changes/68/104368/1
diff --git a/SpecialSportsManagerLogo.php b/SpecialSportsManagerLogo.php
index 95cde69..b834713 100644
--- a/SpecialSportsManagerLogo.php
+++ b/SpecialSportsManagerLogo.php
@@ -543,7 +543,7 @@
$out->addHTML( "<ul class=\"warning\">{$warning}</ul><br />\n"
);
$titleObj = SpecialPage::getTitleFor( 'Upload' );
- $action = $titleObj->escapeLocalURL( 'action=submit' );
+ $action = htmlspecialchars( $titleObj->getLocalURL(
'action=submit' ) );
if ( $wgUseCopyrightUpload ) {
$copyright = "
@@ -678,4 +678,4 @@
wfDebug( __METHOD__ . ": all clear; passing.\n" );
return Status::newGood();
}
-}
\ No newline at end of file
+}
diff --git a/SpecialSportsTeamsManagerLogo.php
b/SpecialSportsTeamsManagerLogo.php
index ba621c4..2cc6ca7 100644
--- a/SpecialSportsTeamsManagerLogo.php
+++ b/SpecialSportsTeamsManagerLogo.php
@@ -562,7 +562,7 @@
$out->addHTML( "<ul class=\"warning\">{$warning}</ul><br />\n"
);
$titleObj = SpecialPage::getTitleFor( 'Upload' );
- $action = $titleObj->escapeLocalURL( 'action=submit' );
+ $action = htmlspecialchars( $titleObj->getLocalURL(
'action=submit' ) );
if ( $wgUseCopyrightUpload ) {
$copyright = "
@@ -705,4 +705,4 @@
wfDebug( __METHOD__ . ": all clear; passing.\n" );
return Status::newGood();
}
-}
\ No newline at end of file
+}
--
To view, visit https://gerrit.wikimedia.org/r/104368
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I13d932a36f3e9057a114bad67aa38319b1ef089c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SportsTeams
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits