jenkins-bot has submitted this change and it was merged.
Change subject: Revert "Remove long-deprecated ApiBase::getVersion()"
......................................................................
Revert "Remove long-deprecated ApiBase::getVersion()"
Restore compatibility with 1.19/1.20
This reverts commit 3397097764344f3a71dcbecebde0fcb08cb3f47e.
Change-Id: I6e707081f1ff5a34c4fad34af2a39565e530d26e
---
M formats/slideshow/SRF_SlideShowApi.php
1 file changed, 12 insertions(+), 0 deletions(-)
Approvals:
Umherirrender: Looks good to me, approved
jenkins-bot: Verified
diff --git a/formats/slideshow/SRF_SlideShowApi.php
b/formats/slideshow/SRF_SlideShowApi.php
index ab919f2..1979b90 100644
--- a/formats/slideshow/SRF_SlideShowApi.php
+++ b/formats/slideshow/SRF_SlideShowApi.php
@@ -149,4 +149,16 @@
);
}
+ /**
+ * Returns a string that identifies the version of the extending class.
+ * Typically includes the class name, the svn revision, timestamp, and
+ * last author. Usually done with SVN's Id keyword
+ * @return string
+ */
+ public function getVersion() {
+ global $srfgIP;
+ $gitSha1 = SpecialVersion::getGitHeadSha1( $srfgIP );
+ return __CLASS__ . '-' . SRF_VERSION . ($gitSha1 !== false) ? '
(' . substr( $gitSha1, 0, 7 ) . ')' : '';
+ }
+
}
--
To view, visit https://gerrit.wikimedia.org/r/189330
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6e707081f1ff5a34c4fad34af2a39565e530d26e
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/SemanticResultFormats
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
Gerrit-Reviewer: Umherirrender <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits