Improve docs in FileDeleteForm
Change-Id: Iefc552a4d522b2a4af1224bef514b66e94f4e49d
This commit is contained in:
parent
7a36d66d75
commit
6cf64addf3
1 changed files with 6 additions and 2 deletions
|
|
@ -49,6 +49,10 @@ class FileDeleteForm {
|
|||
* @var LocalFile
|
||||
*/
|
||||
private $oldfile = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $oldimage = '';
|
||||
|
||||
/**
|
||||
|
|
@ -100,7 +104,7 @@ class FileDeleteForm {
|
|||
|
||||
$this->setHeaders();
|
||||
|
||||
$this->oldimage = $wgRequest->getText( 'oldimage', false );
|
||||
$this->oldimage = $wgRequest->getText( 'oldimage', '' );
|
||||
$token = $wgRequest->getText( 'wpEditToken' );
|
||||
# Flag to hide all contents of the archived revisions
|
||||
$suppress = $wgRequest->getCheck( 'wpSuppress' ) &&
|
||||
|
|
@ -491,7 +495,7 @@ class FileDeleteForm {
|
|||
*
|
||||
* @param LocalFile &$file
|
||||
* @param LocalFile &$oldfile
|
||||
* @param LocalFile $oldimage
|
||||
* @param string $oldimage
|
||||
* @return bool
|
||||
*/
|
||||
public static function haveDeletableFile( &$file, &$oldfile, $oldimage ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue