X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ffilebackend%2FFileOp.php;h=4e0367551069c8957803c7276756ea439a6ff36a;hb=914fb04afad50ddf74733b4e17490faa22677b5f;hp=538d9b471b3d05a1982fd178629996c23bbb464b;hpb=9050ec22df6dd9fec3b6f7e2e02b690a1541f2f6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filebackend/FileOp.php b/includes/filebackend/FileOp.php index 538d9b471b..4e03675510 100644 --- a/includes/filebackend/FileOp.php +++ b/includes/filebackend/FileOp.php @@ -74,7 +74,7 @@ abstract class FileOp { * * @param FileBackendStore $backend * @param array $params - * @throws MWException + * @throws FileBackendError */ final public function __construct( FileBackendStore $backend, array $params ) { $this->backend = $backend; @@ -83,7 +83,7 @@ abstract class FileOp { if ( isset( $params[$name] ) ) { $this->params[$name] = $params[$name]; } else { - throw new MWException( "File operation missing parameter '$name'." ); + throw new FileBackendError( "File operation missing parameter '$name'." ); } } foreach ( $optional as $name ) { @@ -645,7 +645,7 @@ class CopyFileOp extends FileOp { $status = Status::newGood(); // nothing to do } elseif ( $this->params['src'] === $this->params['dst'] ) { // Just update the destination file headers - $headers = $this->getParam( 'headers' ) ? : array(); + $headers = $this->getParam( 'headers' ) ?: array(); $status = $this->backend->describeInternal( $this->setFlags( array( 'src' => $this->params['dst'], 'headers' => $headers ) ) );