That in turn redirects to the statically stored file.
common_redirect($e->file->getUrl());
}
- common_redirect($thumbnail->getUrl());
+ common_redirect(File_thumbnail::url($thumbnail->filename));
}
}
$this->url = null;
$this->update($orig);
}
- return self::url($this->filename);
+ $url = common_local_url('attachment_thumbnail', array('attachment'=>$this->file_id));
+ if (strpos($url, '?') === false) {
+ $url .= '?';
+ }
+ return $url . http_build_query(array('w'=>$this->width, 'h'=>$this->height));
}
// No local filename available, return the URL we have stored