summaryrefslogtreecommitdiff
path: root/actions/attachment_ajax.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@csarven-laptop.(none)>2009-05-24 19:49:02 -0400
committerSarven Capadisli <csarven@csarven-laptop.(none)>2009-05-24 19:49:02 -0400
commit31743dd36807e520702c29973eacd067717a74b7 (patch)
tree1617c5ef67d16c917b6f09b30e66da43f1939b3f /actions/attachment_ajax.php
parent5a1c95d52fdca199957e47903819d16acaea590e (diff)
parent69f9bce276d86538c176e0c26e734ba694119864 (diff)
Merge branch '0.8.x' of git://gitorious.org/laconica/dev into 0.8.x
Diffstat (limited to 'actions/attachment_ajax.php')
-rw-r--r--actions/attachment_ajax.php24
1 files changed, 1 insertions, 23 deletions
diff --git a/actions/attachment_ajax.php b/actions/attachment_ajax.php
index 1620b27dd..6930dc112 100644
--- a/actions/attachment_ajax.php
+++ b/actions/attachment_ajax.php
@@ -46,26 +46,6 @@ require_once INSTALLDIR.'/actions/attachment.php';
class Attachment_ajaxAction extends AttachmentAction
{
/**
- * Load attributes based on database arguments
- *
- * Loads all the DB stuff
- *
- * @param array $args $_REQUEST array
- *
- * @return success flag
- */
-
- function prepare($args)
- {
- parent::prepare($args);
- if (!$this->attachment) {
- $this->clientError(_('No such attachment.'), 404);
- return false;
- }
- return true;
- }
-
- /**
* Show page, a template method.
*
* @return nothing
@@ -87,7 +67,7 @@ class Attachment_ajaxAction extends AttachmentAction
*/
function showCore()
{
- $this->elementStart('div', array('id' => 'core'));
+ $this->elementStart('div', array('id' => 'ajaxcore'));
if (Event::handle('StartShowContentBlock', array($this))) {
$this->showContentBlock();
Event::handle('EndShowContentBlock', array($this));
@@ -95,8 +75,6 @@ class Attachment_ajaxAction extends AttachmentAction
$this->elementEnd('div');
}
-
-
/**
* Last-modified date for page
*