throw new ClientException(_('No id parameter.'));
}
- $this->file = File::staticGet('id', $this->id);
+ $this->file = File::getKV('id', $this->id);
if (empty($this->file)) {
// TRANS: Client exception thrown when an invalid ID parameter was provided for a file.
function handle($argarray=null)
{
common_redirect($this->file->url, 307);
- return;
}
/**
*
* @return boolean is read only action?
*/
- function isReadOnly($args)
+ function isReadOnly(array $args=array())
{
return true;
}