summaryrefslogtreecommitdiff
path: root/includes/edit_storage_inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/edit_storage_inc.php')
-rw-r--r--includes/edit_storage_inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/edit_storage_inc.php b/includes/edit_storage_inc.php
index 3d40b0f..bba99ad 100644
--- a/includes/edit_storage_inc.php
+++ b/includes/edit_storage_inc.php
@@ -35,7 +35,7 @@ if( !empty( $_REQUEST['deleteAttachment'] )) {
}
$attachmentId = $_REQUEST['deleteAttachment'];
- $attachmentInfo = $gContent->getAttachment( $attachmentId );
+ $attachmentInfo = LibertyMime::getAttachment( $attachmentId );
// the second part of this check seems odd (never used?) to me, but I'll leave it in for now - spiderr 10/17/2007
if( $gContent->hasAdminPermission() || ( $gContent->isOwner( $attachmentInfo ) && $gBitUser->hasPermission( 'p_liberty_delete_attachment' ))) {