summaryrefslogtreecommitdiff
path: root/templates/center_list_blog_posts.php
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2007-07-27 12:21:28 +0000
committerwjames5 <will@tekimaki.com>2007-07-27 12:21:28 +0000
commit891eada45d0ebb438778034c280f86ec934271d7 (patch)
tree904c1e2259af8e81488bd56a898aad1a6e7a8902 /templates/center_list_blog_posts.php
parent48ef69e67978e6d4b3845a0da96e97e52795a6a6 (diff)
downloadblogs-891eada45d0ebb438778034c280f86ec934271d7.tar.gz
blogs-891eada45d0ebb438778034c280f86ec934271d7.tar.bz2
blogs-891eada45d0ebb438778034c280f86ec934271d7.zip
on user pages only show pending articles by that user
Diffstat (limited to 'templates/center_list_blog_posts.php')
-rw-r--r--templates/center_list_blog_posts.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/center_list_blog_posts.php b/templates/center_list_blog_posts.php
index 3829f80..6e2d873 100644
--- a/templates/center_list_blog_posts.php
+++ b/templates/center_list_blog_posts.php
@@ -10,10 +10,17 @@ if( empty( $gContent )) {
$gBitSmarty->assign_by_ref( 'gContent', $blogPost );
}
-$futuresHash = array();
if( $gBitUser->hasPermission( 'p_blog_posts_read_future' ) || $gBitUser->isAdmin() ) {
+ $futuresHash = $_REQUEST;
$futuresHash['max_records'] = !empty( $_REQUEST['max_records'] ) ? $_REQUEST['max_records'] : $gBitSystem->getConfig( 'blog_posts_max_list' );
$futuresHash['get_future'] = TRUE;
+ if( empty( $futuresHash['user_id'] )) {
+ if( !empty( $gQueryUserId )) {
+ $futuresHash['user_id'] = $gQueryUserId;
+ } elseif( $_REQUEST['user_id'] ) {
+ $futuresHash['user_id'] = $_REQUEST['user_id'];
+ }
+ }
$futures = $gContent->getFutureList( $futuresHash );
$gBitSmarty->assign( 'futures', $futures['data']);
} else {