summaryrefslogtreecommitdiff
path: root/attachments.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-01-11 15:42:55 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-01-11 15:42:55 +0000
commit2484e4ca75b94faf00659415bbc518768935c111 (patch)
tree2ea0e48c7ca2b399c77bb8503e59169651f583ed /attachments.php
parent4b39c095b0d1e16da44b5a4173615b85488ab0ec (diff)
downloadliberty-2484e4ca75b94faf00659415bbc518768935c111.tar.gz
liberty-2484e4ca75b94faf00659415bbc518768935c111.tar.bz2
liberty-2484e4ca75b94faf00659415bbc518768935c111.zip
add option to scan for usage of a given attachment id in content
Diffstat (limited to 'attachments.php')
-rw-r--r--attachments.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/attachments.php b/attachments.php
index 186bda3..f446c88 100644
--- a/attachments.php
+++ b/attachments.php
@@ -3,7 +3,7 @@
* attachment_browser
*
* @author spider <spider@steelsun.com>
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
* @package liberty
* @subpackage functions
*/
@@ -37,10 +37,15 @@ if( $gBitUser->isAdmin() ) {
$listHash['user_id'] = $gBitUser->mUserId;
}
+if( @BitBase::verifyId( $_REQUEST['attachment_id'] )) {
+ $attachmentUsage = $gContent->scanForAttchmentUse( $_REQUEST['attachment_id'] );
+ $gBitSmarty->assign( 'attachmentUsage', $attachmentUsage );
+}
+
$attachments = $gContent->getAttachmentList( $listHash );
$gBitSmarty->assign( 'listInfo', $listHash['listInfo'] );
$gBitSmarty->assign( 'attachments', $attachments );
$gBitSmarty->assign( 'feedback', $feedback );
-$gBitSystem->display( 'bitpackage:liberty/attachments.tpl' );
+$gBitSystem->display( 'bitpackage:liberty/attachments.tpl', tra( 'Attachments' ));
?>