summaryrefslogtreecommitdiff
path: root/attachment_browser.php
diff options
context:
space:
mode:
Diffstat (limited to 'attachment_browser.php')
-rw-r--r--attachment_browser.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/attachment_browser.php b/attachment_browser.php
index 77ef065..a3044ea 100644
--- a/attachment_browser.php
+++ b/attachment_browser.php
@@ -3,7 +3,7 @@
* attachment_browser
*
* @author spider <spider@steelsun.com>
- * @version $Revision: 1.16 $
+ * @version $Revision: 1.17 $
* @package liberty
* @subpackage functions
*/
@@ -35,16 +35,16 @@ if (isset($_REQUEST['attachment_id']) && is_numeric($_REQUEST['attachment_id']))
'load_attached_to' => true,
);
$userAttachments = $gBitUser->getUserAttachments( $listHash );
-
+
// Fake the storage assignment for edit_storage_list.tpl
$gContent->mStorage = $userAttachments;
$gBitSmarty->assign('gContent', $gContent);
-
+
// pagination
$offset = @BitBase::verifyId( $_REQUEST['offset'] ) ? $_REQUEST['offset'] : 0;
$gBitSmarty->assign( 'curPage', $pgnPage = @BitBase::verifyId( $_REQUEST['pgnPage'] ) ? $_REQUEST['pgnPage'] : 1 );
$offset = ( $pgnPage - 1 ) * $gBitSystem->getConfig( 'max_records' );
-
+
// calculate page number
$numPages = ceil( $listHash['cant'] / $gBitSystem->getConfig( 'max_records' ) );
$gBitSmarty->assign( 'cant', $listHash['cant'] );