Reedy has uploaded a new change for review.
https://gerrit.wikimedia.org/r/79851
Change subject: Fatal error: Using $this when not in object context in
SpecialUpload.php on line 686
......................................................................
Fatal error: Using $this when not in object context in SpecialUpload.php on
line 686
Bug: 53065
Change-Id: I182e21e072974cb1478602bca70c8d9a31894cd6
---
M includes/specials/SpecialUpload.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/51/79851/1
diff --git a/includes/specials/SpecialUpload.php
b/includes/specials/SpecialUpload.php
index 3a057ea..263ec3a 100644
--- a/includes/specials/SpecialUpload.php
+++ b/includes/specials/SpecialUpload.php
@@ -340,7 +340,7 @@
if ( $warning == 'exists' ) {
$msg = "\t<li>" . self::getExistsWarning( $args
) . "</li>\n";
} elseif ( $warning == 'duplicate' ) {
- $msg = self::getDupeWarning( $args );
+ $msg = $this->getDupeWarning( $args );
} elseif ( $warning == 'duplicate-archive' ) {
$msg = "\t<li>" . $this->msg(
'file-deleted-duplicate',
Title::makeTitle( NS_FILE,
$args )->getPrefixedText() )->parse()
@@ -677,7 +677,7 @@
* @param $dupes array
* @return string
*/
- public static function getDupeWarning( $dupes ) {
+ public function getDupeWarning( $dupes ) {
if ( !$dupes ) {
return '';
}
--
To view, visit https://gerrit.wikimedia.org/r/79851
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I182e21e072974cb1478602bca70c8d9a31894cd6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: wmf/1.22wmf13
Gerrit-Owner: Reedy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits