r100264 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100263‎ | r100264 | r100265 >
Date:19:38, 19 October 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
we want to get the edit token, not edit the token...
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -3160,16 +3160,30 @@
31613161 }
31623162
31633163 /**
 3164+ * Alias for getEditToken.
 3165+ * @deprecated since 1.19, use getEditToken instead.
 3166+ *
 3167+ * @param $salt String|Array of Strings Optional function-specific data for hashing
 3168+ * @param $request WebRequest object to use or null to use $wgRequest
 3169+ * @return String The new edit token
 3170+ */
 3171+ public function editToken( $salt = '', $request = null ) {
 3172+ return $this->getEditToken( $salt, $request );
 3173+ }
 3174+
 3175+ /**
31643176 * Initialize (if necessary) and return a session token value
31653177 * which can be used in edit forms to show that the user's
31663178 * login credentials aren't being hijacked with a foreign form
31673179 * submission.
31683180 *
 3181+ * @since 1.19
 3182+ *
31693183 * @param $salt String|Array of Strings Optional function-specific data for hashing
31703184 * @param $request WebRequest object to use or null to use $wgRequest
31713185 * @return String The new edit token
31723186 */
3173 - public function editToken( $salt = '', $request = null ) {
 3187+ public function getEditToken( $salt = '', $request = null ) {
31743188 if ( $request == null ) {
31753189 $request = $this->getRequest();
31763190 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r103294Following r100264, update usages in corejohnduhart04:37, 16 November 2011

Status & tagging log