diff options
| author | Nick Palmer <nick@sluggardy.net> | 2007-04-18 20:52:39 +0000 |
|---|---|---|
| committer | Nick Palmer <nick@sluggardy.net> | 2007-04-18 20:52:39 +0000 |
| commit | 9b09f0f9762fb94e0fceb65812a9c6fa9378cf58 (patch) | |
| tree | 8b97f9e1063e6056ba4c4c10119df20c60756f80 /attachment_browser.php | |
| parent | ba78a71e3f5bd4a28250628421616ba9c704c74a (diff) | |
| download | liberty-9b09f0f9762fb94e0fceb65812a9c6fa9378cf58.tar.gz liberty-9b09f0f9762fb94e0fceb65812a9c6fa9378cf58.tar.bz2 liberty-9b09f0f9762fb94e0fceb65812a9c6fa9378cf58.zip | |
Various attachment related changes to make things more ajax and fix bugs.
Diffstat (limited to 'attachment_browser.php')
| -rw-r--r-- | attachment_browser.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/attachment_browser.php b/attachment_browser.php index 268d788..5523146 100644 --- a/attachment_browser.php +++ b/attachment_browser.php @@ -3,7 +3,7 @@ * attachment_browser * * @author spider <spider@steelsun.com> - * @version $Revision: 1.12 $ + * @version $Revision: 1.13 $ * @package liberty * @subpackage functions */ @@ -14,9 +14,11 @@ require_once("../bit_setup_inc.php"); global $gBitSmarty, $gContent, $gBitUser, $gBitSystem, $gLibertySystem; + $listHash = $_REQUEST; $listHash = array( - 'page' => @BitBase::verifyId( $_REQUEST['pgnPage'] ) ? $_REQUEST['pgnPage'] : NULL + 'page' => @BitBase::verifyId( $_REQUEST['pgnPage'] ) ? $_REQUEST['pgnPage'] : NULL, + 'load_attached_to' => true, ); $userAttachments = $gBitUser->getUserAttachments( $listHash ); // DEPRECATED - Slated for removal -wjames5 @@ -34,4 +36,5 @@ $offset = ( $pgnPage - 1 ) * $gBitSystem->getConfig( 'max_records' ); // calculate page number $numPages = ceil( $listHash['cant'] / $gBitSystem->getConfig( 'max_records' ) ); $gBitSmarty->assign( 'numPages', $numPages ); + ?> |
