[MediaWiki-commits] [Gerrit] Made getName() in ArchivedFile work when loaded via sha1 - change (mediawiki/core)
Aaron Schulz has uploaded a new change for review. https://gerrit.wikimedia.org/r/134931 Change subject: Made getName() in ArchivedFile work when loaded via sha1 .. Made getName() in ArchivedFile work when loaded via sha1 Change-Id: I44e9c129f6c5841f8cbc9792aa9ff0f353bce6c0 --- M includes/filerepo/file/ArchivedFile.php 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/31/134931/1 diff --git a/includes/filerepo/file/ArchivedFile.php b/includes/filerepo/file/ArchivedFile.php index 845fd71..1eee6a2 100644 --- a/includes/filerepo/file/ArchivedFile.php +++ b/includes/filerepo/file/ArchivedFile.php @@ -281,6 +281,10 @@ * @return string */ public function getName() { + if ( $this->name === false ) { + $this->load(); + } + return $this->name; } -- To view, visit https://gerrit.wikimedia.org/r/134931 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I44e9c129f6c5841f8cbc9792aa9ff0f353bce6c0 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Aaron Schulz ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] Made getName() in ArchivedFile work when loaded via sha1 - change (mediawiki/core)
jenkins-bot has submitted this change and it was merged. Change subject: Made getName() in ArchivedFile work when loaded via sha1 .. Made getName() in ArchivedFile work when loaded via sha1 Change-Id: I44e9c129f6c5841f8cbc9792aa9ff0f353bce6c0 --- M includes/filerepo/file/ArchivedFile.php 1 file changed, 4 insertions(+), 0 deletions(-) Approvals: Brian Wolff: Looks good to me, approved jenkins-bot: Verified diff --git a/includes/filerepo/file/ArchivedFile.php b/includes/filerepo/file/ArchivedFile.php index 845fd71..1eee6a2 100644 --- a/includes/filerepo/file/ArchivedFile.php +++ b/includes/filerepo/file/ArchivedFile.php @@ -281,6 +281,10 @@ * @return string */ public function getName() { + if ( $this->name === false ) { + $this->load(); + } + return $this->name; } -- To view, visit https://gerrit.wikimedia.org/r/134931 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I44e9c129f6c5841f8cbc9792aa9ff0f353bce6c0 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Aaron Schulz Gerrit-Reviewer: Brian Wolff Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits