More documentation
Remove trailing whitespace
This commit is contained in:
parent
0e38c2cdce
commit
89656cc42c
3 changed files with 18 additions and 8 deletions
|
|
@ -113,8 +113,6 @@ class ApiFileRevert extends ApiBase {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function mustBePosted() {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -135,6 +135,13 @@ class ApiMove extends ApiBase {
|
|||
$this->getResult()->addValue( null, $this->getModuleName(), $r );
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Title $fromTitle
|
||||
* @param Title $toTitle
|
||||
* @param $reason
|
||||
* @param $noredirect
|
||||
* @return array
|
||||
*/
|
||||
public function moveSubpages( $fromTitle, $toTitle, $reason, $noredirect ) {
|
||||
$retval = array();
|
||||
$success = $fromTitle->moveSubpages( $toTitle, true, $reason, !$noredirect );
|
||||
|
|
|
|||
|
|
@ -18,6 +18,11 @@ class LocalRepo extends FSRepo {
|
|||
var $fileFromRowFactory = array( 'LocalFile', 'newFromRow' );
|
||||
var $oldFileFromRowFactory = array( 'OldLocalFile', 'newFromRow' );
|
||||
|
||||
/**
|
||||
* @throws MWException
|
||||
* @param $row
|
||||
* @return File
|
||||
*/
|
||||
function newFileFromRow( $row ) {
|
||||
if ( isset( $row->img_name ) ) {
|
||||
return call_user_func( $this->fileFromRowFactory, $row, $this );
|
||||
|
|
|
|||
Loading…
Reference in a new issue