return $a->title();
}
- /**
- * Handle input
- *
- * Only handles get, so just show the page.
- *
- * @return void
- */
- protected function handle()
+ public function showPage()
{
if (empty($this->attachment->filename)) {
// if it's not a local file, gtfo
- common_redirect($this->attachment->url, 303);
+ common_redirect($this->attachment->getUrl(), 303);
}
- parent::handle();
+ parent::showPage();
}
/**
function showSections() {
$ns = new AttachmentNoticeSection($this);
$ns->show();
- if (!common_config('performance', 'high')) {
- $atcs = new AttachmentTagCloudSection($this);
- $atcs->show();
- }
}
}