From: Kevin Israel Date: Wed, 26 Aug 2015 04:38:54 +0000 (-0400) Subject: Fix typo in UploadFromUrlJob::initializeSessionData() X-Git-Tag: 1.31.0-rc.0~10273^2 X-Git-Url: http://git.cyclocoop.org/%27-%20%20.%20url_absolue%28find_in_path%28%27spip_style.css%27%29%29%20%20%20.%20url_absolue%28find_in_path%28%27prive/spip_style.css%27%29%29%20.%20%27?a=commitdiff_plain;h=2b66dc047f57f184cd1486680f82ce92c759c527;p=lhc%2Fweb%2Fwiklou.git Fix typo in UploadFromUrlJob::initializeSessionData() Behavior would change under PHP7, though neither the current behavior nor the new behavior seem correct. Did not test, as the feature has been broken anyway since r81612 / e942dc69fcc6. https://github.com/facebook/hhvm/issues/5523#issuecomment-133132721 Change-Id: Iac1177fee05b6c721abe54b6a96c1652445a5c90 --- diff --git a/includes/jobqueue/jobs/UploadFromUrlJob.php b/includes/jobqueue/jobs/UploadFromUrlJob.php index a15d51e835..ade481068d 100644 --- a/includes/jobqueue/jobs/UploadFromUrlJob.php +++ b/includes/jobqueue/jobs/UploadFromUrlJob.php @@ -166,11 +166,11 @@ class UploadFromUrlJob extends Job { } /** - * Initialize the session data. Sets the intial result to queued. + * Initialize the session data. Sets the initial result to queued. */ public function initializeSessionData() { $session =& self::getSessionData( $this->params['sessionKey'] ); - $$session['result'] = 'Queued'; + $session['result'] = 'Queued'; } /**