parent::prepare($args);
if ($id = $this->trimmed('attachment')) {
- $this->attachment = File::staticGet($id);
+ $this->attachment = File::getKV($id);
}
if (empty($this->attachment)) {
}
}
- /**
- * Don't show local navigation
- *
- * @return void
- */
- function showLocalNavBlock()
- {
- }
-
/**
* Fill the content area of the page
*
function showSections() {
$ns = new AttachmentNoticeSection($this);
$ns->show();
- $atcs = new AttachmentTagCloudSection($this);
- $atcs->show();
+ if (!common_config('performance', 'high')) {
+ $atcs = new AttachmentTagCloudSection($this);
+ $atcs->show();
+ }
}
}