Siebrand has uploaded a new change for review.

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


Change subject: Replace deprecated User::editToken with User::getEditToken 
(1.19)
......................................................................

Replace deprecated User::editToken with User::getEditToken (1.19)

Change-Id: Ic11279ba25a3f29dc77e5050b653bac336038ecb
---
M includes/SD_Utils.php
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticDrilldown 
refs/changes/04/106204/1

diff --git a/includes/SD_Utils.php b/includes/SD_Utils.php
index 59a773d..e065e8b 100644
--- a/includes/SD_Utils.php
+++ b/includes/SD_Utils.php
@@ -31,13 +31,13 @@
        /**
         * Helper function to handle getPropertyValues() in both SMW 1.6
         * and earlier versions.
-        * 
+        *
         * @param SMWStore $store
         * @param string $pageName
         * @param integer $pageNamespace
         * @param string $propID
         * @param null|SMWRequestOptions $requestOptions
-        * 
+        *
         * @return array of SMWDataItem
         */
        public static function getSMWPropertyValues( SMWStore $store, 
$pageName, $pageNamespace, $propID, $requestOptions = null ) {
@@ -421,7 +421,7 @@
                $edittime = $article->getTimestamp();
                global $wgUser;
                if ( $wgUser->isLoggedIn() )
-                       $token = htmlspecialchars( $wgUser->editToken() );
+                       $token = htmlspecialchars( $wgUser->getEditToken() );
                else
                        $token = EDIT_TOKEN_SUFFIX;
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic11279ba25a3f29dc77e5050b653bac336038ecb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticDrilldown
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>

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

Reply via email to