diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2008-12-04 09:37:19 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2008-12-04 09:37:19 +0000 |
| commit | adc7089ad92a24da99a0ab1ae3c67c5451837c00 (patch) | |
| tree | 5350866c508b1f7cc811ca88299f365ec0752914 /download_file.php | |
| parent | de0f57a3b1bf9431de859b1a1828ca56b6255d3f (diff) | |
| download | liberty-adc7089ad92a24da99a0ab1ae3c67c5451837c00.tar.gz liberty-adc7089ad92a24da99a0ab1ae3c67c5451837c00.tar.bz2 liberty-adc7089ad92a24da99a0ab1ae3c67c5451837c00.zip | |
fetch default download function if we can't find a real one.
Diffstat (limited to 'download_file.php')
| -rw-r--r-- | download_file.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/download_file.php b/download_file.php index f11c2b5..87c49b6 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.4 2008/12/02 15:47:35 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_liberty/download_file.php,v 1.5 2008/12/04 09:37:19 squareing Exp $ * * @author xing <xing@synapse.plus.com> * @package treasury @@ -23,7 +23,7 @@ $gContent = LibertyBase::getLibertyObject( $attachment['content_id'] ); $gContent->verifyViewPermission(); $gBitSmarty->assign( 'gContent', $gContent ); -if( $download_function = $gLibertySystem->getPluginFunction( $attachment['attachment_plugin_guid'], 'download_function' )) { +if( $download_function = $gLibertySystem->getPluginFunction( $attachment['attachment_plugin_guid'], 'download_function', TRUE )) { if( $download_function( $attachment )) { LibertyMime::addDownload( $attachment['attachment_id'] ); die; |
