Umherirrender has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/189332

Change subject: Revert "Remove long-deprecated ApiBase::getVersion()"
......................................................................

Revert "Remove long-deprecated ApiBase::getVersion()"

Restore compatibility with 1.19/1.20

This reverts commit 586dd928068b274a0d57508a86b3e119134e96fe.

Change-Id: I5c6aba3fee2ed7d4e1c81c80600979d6ca6fc3a5
---
M includes/SF_AutocompleteAPI.php
M includes/SF_AutoeditAPI.php
2 files changed, 17 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticForms 
refs/changes/32/189332/1

diff --git a/includes/SF_AutocompleteAPI.php b/includes/SF_AutocompleteAPI.php
index 790b4c9..a6407a0 100644
--- a/includes/SF_AutocompleteAPI.php
+++ b/includes/SF_AutocompleteAPI.php
@@ -141,6 +141,10 @@
                );
        }
 
+       public function getVersion() {
+               return __CLASS__ . ': $Id$';
+       }
+
        private static function getAllValuesForProperty( $property_name, 
$substring, $basePropertyName = null, $baseValue = null ) {
                global $sfgMaxAutocompleteValues, $sfgCacheAutocompleteValues, 
$sfgAutocompleteCacheTimeout;
                global $smwgDefaultStore;
diff --git a/includes/SF_AutoeditAPI.php b/includes/SF_AutoeditAPI.php
index 05f6512..2d0135a 100644
--- a/includes/SF_AutoeditAPI.php
+++ b/includes/SF_AutoeditAPI.php
@@ -1162,4 +1162,17 @@
                );
        }
 
+       /**
+        * Returns a string that identifies the version of the class.
+        * Includes the class name, the svn revision, timestamp, and
+        * last author.
+        *
+        * @return string
+        */
+       function getVersion() {
+               global $sfgIP;
+               $gitSha1 = SpecialVersion::getGitHeadSha1( $sfgIP );
+               return __CLASS__ . '-' . SF_VERSION . ($gitSha1 !== false) ? ' 
(' . substr( $gitSha1, 0, 7 ) . ')' : '';
+       }
+
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/189332
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5c6aba3fee2ed7d4e1c81c80600979d6ca6fc3a5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticForms
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to