r64413 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64412‎ | r64413 | r64414 >
Date:00:15, 31 March 2010
Author:mah
Status:ok
Tags:
Comment:
use class constant from r64403
Modified paths:
  • /trunk/phase3/includes/upload/UploadFromStash.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/upload/UploadFromStash.php
@@ -18,7 +18,7 @@
1919 }
2020
2121 public static function isValidRequest( $request ) {
22 - $sessionData = $request->getSessionData( 'wsUploadData' );
 22+ $sessionData = $request->getSessionData( self::SESSION_KEYNAME );
2323 return self::isValidSessionKey(
2424 $request->getInt( 'wpSessionKey' ),
2525 $sessionData
@@ -46,7 +46,7 @@
4747
4848 public function initializeFromRequest( &$request ) {
4949 $sessionKey = $request->getInt( 'wpSessionKey' );
50 - $sessionData = $request->getSessionData('wsUploadData');
 50+ $sessionData = $request->getSessionData( self::SESSION_KEYNAME );
5151
5252 $desiredDestName = $request->getText( 'wpDestFile' );
5353 if( !$desiredDestName )

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r64403* Set $titleObj to null by default on getWatchlistValue since it often isn't ...mah19:10, 30 March 2010

Status & tagging log