$user = $context->getUser();
if ( !$user->isLoggedIn() || $user->getId() != $this->params['userid'] ) {
$this->setLastError( "Could not load the author user from session." );
- return true; // no retries
+ return false;
}
UploadBase::setSessionStatus(
array( 'result' => 'Failure', 'stage' => 'assembling', 'status' => $status )
);
$this->setLastError( $status->getWikiText() );
- return true; // no retries
+ return false;
}
// We have a new filekey for the fully concatenated file
)
);
$this->setLastError( get_class( $e ) . ": " . $e->getText() );
+ return false;
}
- return true; // returns true on success and erro (no retries)
+ return true;
}
- /**
- * @return Array
- */
public function getDeduplicationInfo() {
$info = parent::getDeduplicationInfo();
if ( is_array( $info['params'] ) ) {
}
return $info;
}
+
+ public function allowRetries() {
+ return false;
+ }
}
$user = $context->getUser();
if ( !$user->isLoggedIn() || $user->getId() != $this->params['userid'] ) {
$this->setLastError( "Could not load the author user from session." );
- return true; // no retries
+ return false;
}
UploadBase::setSessionStatus(
array( 'result' => 'Failure', 'stage' => 'publish', 'status' => $status )
);
$this->setLastError( "Could not verify upload." );
- return true; // no retries
+ return false;
}
// Upload the stashed file to a permanent location
array( 'result' => 'Failure', 'stage' => 'publish', 'status' => $status )
);
$this->setLastError( $status->getWikiText() );
- return true; // no retries
+ return false;
}
// Build the image info array while we have the local reference handy
)
);
$this->setLastError( get_class( $e ) . ": " . $e->getText() );
+ return false;
}
- return true; // returns true on success and erro (no retries)
+ return true;
}
- /**
- * @return Array
- */
public function getDeduplicationInfo() {
$info = parent::getDeduplicationInfo();
if ( is_array( $info['params'] ) ) {
}
return $info;
}
+
+ public function allowRetries() {
+ return false;
+ }
}