Umherirrender has uploaded a new change for review.
https://gerrit.wikimedia.org/r/189330
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(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticResultFormats
refs/changes/30/189330/1
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: newchange
Gerrit-Change-Id: I6e707081f1ff5a34c4fad34af2a39565e530d26e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticResultFormats
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits