Currently the name of the file is sent without the "File:" prefix making MediaWiki think we want to display a page in the main namespace.
Change-Id: I5a42764c8e9289d13b95a1989be63fdf357bc6ef
Xml::openElement( 'form', array(
'method' => 'POST',
'action' => $this->getTitle()->getLocalUrl(
- 'target=' . urlencode( $oimage->getName() ) .
+ 'target=' . urlencode( $this->targetObj->getPrefixedDBkey() ) .
'&file=' . urlencode( $archiveName ) .
'&token=' . urlencode( $user->getEditToken( $archiveName ) ) )
)