diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-12-31 11:29:56 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-12-31 11:29:56 +0000 |
| commit | aeaccc968ac9085299c190a3dbebd908f461a1c7 (patch) | |
| tree | 3799ce25eb7d046d5861a8ce2059f8671f7f3846 /assign_content.php | |
| parent | 4db22dc5aee1cff803392aec3459f61b77cd9a4b (diff) | |
| download | pigeonholes-aeaccc968ac9085299c190a3dbebd908f461a1c7.tar.gz pigeonholes-aeaccc968ac9085299c190a3dbebd908f461a1c7.tar.bz2 pigeonholes-aeaccc968ac9085299c190a3dbebd908f461a1c7.zip | |
translate content description
Diffstat (limited to 'assign_content.php')
| -rw-r--r-- | assign_content.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/assign_content.php b/assign_content.php index bf948c5..2a534e7 100644 --- a/assign_content.php +++ b/assign_content.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_pigeonholes/assign_content.php,v 1.5 2006/06/18 07:58:13 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_pigeonholes/assign_content.php,v 1.6 2006/12/31 11:29:56 squareing Exp $ * * Copyright ( c ) 2004 bitweaver.org * Copyright ( c ) 2003 tikwiki.org @@ -8,7 +8,7 @@ * 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 * - * $Id: assign_content.php,v 1.5 2006/06/18 07:58:13 squareing Exp $ + * $Id: assign_content.php,v 1.6 2006/12/31 11:29:56 squareing Exp $ * @package pigeonholes * @subpackage functions */ @@ -26,9 +26,11 @@ include_once( PIGEONHOLES_PKG_PATH.'lookup_pigeonholes_inc.php' ); $feedback = ''; $gBitSmarty->assign_by_ref( 'feedback', $feedback ); -$contentTypes = array( '' => tra( 'All Content' ) ); -foreach( $gLibertySystem->mContentTypes as $cType ) { - $contentTypes[$cType['content_type_guid']] = $cType['content_description']; +if( empty( $contentTypes ) ) { + $contentTypes = array( '' => tra( 'All Content' ) ); + foreach( $gLibertySystem->mContentTypes as $cType ) { + $contentTypes[$cType['content_type_guid']] = tra( $cType['content_description'] ); + } } $gBitSmarty->assign( 'contentTypes', $contentTypes ); $gBitSmarty->assign( 'contentSelect', $contentSelect = !isset( $_REQUEST['content_type'] ) ? NULL : $_REQUEST['content_type'] ); |
