diff options
| author | Christian Fowler <spider@viovio.com> | 2008-06-25 22:21:06 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2008-06-25 22:21:06 +0000 |
| commit | e315117c54544e23d472333989dfe6f62f8792b0 (patch) | |
| tree | 1bc6e86f32ad41b9dd585d5a1daf90f774a882ec /article_history.php | |
| parent | d8de906462155c32339a6ea23336d6f420675873 (diff) | |
| download | articles-e315117c54544e23d472333989dfe6f62f8792b0.tar.gz articles-e315117c54544e23d472333989dfe6f62f8792b0.tar.bz2 articles-e315117c54544e23d472333989dfe6f62f8792b0.zip | |
change display call to use a hash for display options, add display_mode to options hash
Diffstat (limited to 'article_history.php')
| -rw-r--r-- | article_history.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/article_history.php b/article_history.php index 144bfba..33bf7a3 100644 --- a/article_history.php +++ b/article_history.php @@ -37,7 +37,7 @@ if( !$gContent->isValid() || empty( $gContent->mInfo ) ) { // additionally we need to check if this article is a submission and see if user has perms to view it. if( $gContent->getField( 'status_id' ) != ARTICLE_STATUS_APPROVED && !( $gContent->hasUserPermission( 'p_articles_edit_submission' ) || $gContent->hasUserPermission( 'p_articles_edit_submission' ) || $gContent->hasUserPermission( 'p_articles_edit_submission' ) || $gBitUser->isAdmin() ) ) { $gBitSmarty->assign( 'msg', tra( "Permission denied you cannot view this article" ) ); - $gBitSystem->display( "error.tpl" ); + $gBitSystem->display( "error.tpl" , NULL, array( 'display_mode' => 'display' )); die; } @@ -59,5 +59,5 @@ $gBitSmarty->assign( 'numPages', $numPages ); // Display the template $gBitSmarty->assign_by_ref( 'gContent', $gContent ); -$gBitSystem->display( 'bitpackage:articles/article_history.tpl'); +$gBitSystem->display( 'bitpackage:articles/article_history.tpl', NULL, array( 'display_mode' => 'display' )); ?> |
