diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2008-12-08 09:02:34 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2008-12-08 09:02:34 +0000 |
| commit | 257822968236b494dfddce3fb1187bca76a1fe12 (patch) | |
| tree | 292979b821e1bc37eb95a67c7870890904ac2b6b /download_file.php | |
| parent | adc7089ad92a24da99a0ab1ae3c67c5451837c00 (diff) | |
| download | liberty-257822968236b494dfddce3fb1187bca76a1fe12.tar.gz liberty-257822968236b494dfddce3fb1187bca76a1fe12.tar.bz2 liberty-257822968236b494dfddce3fb1187bca76a1fe12.zip | |
use 'mime' instead of 'TRUE' and use more descriptive method name adding adding download hit count
Diffstat (limited to 'download_file.php')
| -rw-r--r-- | download_file.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/download_file.php b/download_file.php index 87c49b6..99c8abf 100644 --- a/download_file.php +++ b/download_file.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_liberty/download_file.php,v 1.5 2008/12/04 09:37:19 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_liberty/download_file.php,v 1.6 2008/12/08 09:02:34 squareing Exp $ * * @author xing <xing@synapse.plus.com> * @package treasury @@ -23,9 +23,9 @@ $gContent = LibertyBase::getLibertyObject( $attachment['content_id'] ); $gContent->verifyViewPermission(); $gBitSmarty->assign( 'gContent', $gContent ); -if( $download_function = $gLibertySystem->getPluginFunction( $attachment['attachment_plugin_guid'], 'download_function', TRUE )) { +if( $download_function = $gLibertySystem->getPluginFunction( $attachment['attachment_plugin_guid'], 'download_function', 'mime' )) { if( $download_function( $attachment )) { - LibertyMime::addDownload( $attachment['attachment_id'] ); + LibertyMime::addDownloadHit( $attachment['attachment_id'] ); die; } else { if( !empty( $attachment['errors'] )) { |
