diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2005-08-26 10:15:15 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2005-08-26 10:15:15 +0000 |
| commit | 04136bdba7c067bf09174d3ed6427dbe265d8e01 (patch) | |
| tree | bf2ac5191c103ac7e4f2a3675d6960bd929c5f91 /index.php | |
| parent | 607fcfd7cec87a689b7b3210bb29d79cb5ab17cd (diff) | |
| download | articles-04136bdba7c067bf09174d3ed6427dbe265d8e01.tar.gz articles-04136bdba7c067bf09174d3ed6427dbe265d8e01.tar.bz2 articles-04136bdba7c067bf09174d3ed6427dbe265d8e01.zip | |
get article submissions working
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,5 @@ <?php -// $Header: /cvsroot/bitweaver/_bit_articles/index.php,v 1.3 2005/08/25 11:24:22 squareing Exp $ +// $Header: /cvsroot/bitweaver/_bit_articles/index.php,v 1.4 2005/08/26 10:15:15 squareing Exp $ // Copyright( c )2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. @@ -19,7 +19,10 @@ if( !empty( $_REQUEST['article_id'] ) ) { require_once( ARTICLES_PKG_PATH.'lookup_article_inc.php' ); +// only display approved articles +$_REQUEST['status_id'] = ARTICLE_STATUS_APPROVED; $articles = $gContent->getList( $_REQUEST ); + foreach( $articles['data'] as $key => $article ) { if( strlen( $article['parsed_description'] ) != strlen( $article['parsed_data'] ) ) { $articles['data'][$key]['read_more'] = TRUE; |
