public function getDescriptionStylesheetUrl() {
if ( isset( $this->scriptDirUrl ) ) {
return $this->makeUrl( 'title=MediaWiki:Filepage.css&' .
- wfArrayToCGI( Skin::getDynamicStylesheetQuery() ) );
+ wfArrayToCgi( Skin::getDynamicStylesheetQuery() ) );
}
return false;
}
* @param $dstPath String Target file system path
* @param $flags Integer: bitwise combination of the following flags:
* self::DELETE_SOURCE Delete the source files
- * @param $callback Closure Optional callback function (see FileBackend::concatenate())
* @return FileRepoStatus
*/
- public function concatenate( array $srcPaths, $dstPath, $flags = 0, Closure $callback = null ) {
+ public function concatenate( array $srcPaths, $dstPath, $flags = 0 ) {
$this->assertWritableRepo(); // fail out if read-only
$status = $this->newGood();
}
// Concatenate the chunks into one FS file
- $params = array( 'srcs' => $sources, 'dst' => $dstPath, 'callback' => $callback );
+ $params = array( 'srcs' => $sources, 'dst' => $dstPath );
$status->merge( $this->backend->concatenate( $params ) );
if ( !$status->isOK() ) {
return $status;
/**
* Get an UploadStash associated with this repo.
*
+ * @param $user User
* @return UploadStash
*/
- public function getUploadStash() {
- return new UploadStash( $this );
+ public function getUploadStash( User $user = null ) {
+ return new UploadStash( $this, $user );
}
/**