Index: trunk/phase3/includes/api/ApiQueryStashImageInfo.php |
— | — | @@ -45,6 +45,11 @@ |
46 | 46 | $this->dieUsage( "One of filekey or sessionkey must be supplied", 'nofilekey'); |
47 | 47 | } |
48 | 48 | |
| 49 | + // Alias sessionkey to filekey, but give an existing filekey precedence. |
| 50 | + if ( !$params['filekey'] && $params['sessionkey'] ) { |
| 51 | + $params['filekey'] = $params['sessionkey']; |
| 52 | + } |
| 53 | + |
49 | 54 | try { |
50 | 55 | $stash = RepoGroup::singleton()->getLocalRepo()->getUploadStash(); |
51 | 56 | |