diff options
| -rwxr-xr-x | LibertySystem.php | 4 | ||||
| -rw-r--r-- | get_content_list_inc.php | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/LibertySystem.php b/LibertySystem.php index c905ebd..f74f4ae 100755 --- a/LibertySystem.php +++ b/LibertySystem.php @@ -3,7 +3,7 @@ * System class for handling the liberty package * * @package liberty -* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.53 2006/12/31 11:37:01 squareing Exp $ +* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.54 2006/12/31 13:01:15 squareing Exp $ * @author spider <spider@steelsun.com> */ @@ -354,6 +354,8 @@ class LibertySystem extends LibertyBase { function loadContentTypes( $pCacheTime=BIT_QUERY_CACHE_TIME ) { if( $rs = $this->mDb->query( "SELECT * FROM `".BIT_DB_PREFIX."liberty_content_types`", NULL, BIT_QUERY_DEFAULT, BIT_QUERY_DEFAULT ) ) { while( $row = $rs->fetchRow() ) { + // translate the content description + $row['content_description'] = tra( $row['content_description'] ); $this->mContentTypes[$row['content_type_guid']] = $row; } } diff --git a/get_content_list_inc.php b/get_content_list_inc.php index 77a4e85..464be0f 100644 --- a/get_content_list_inc.php +++ b/get_content_list_inc.php @@ -3,7 +3,7 @@ * get_content_list * * @author Christian Fowler> - * @version $Revision: 1.27 $ + * @version $Revision: 1.28 $ * @package liberty * @subpackage functions */ @@ -68,7 +68,7 @@ $contentList = $gContent->getContentList( $contentListHash ); if( empty( $contentTypes ) ) { $contentTypes = array( '' => tra( 'All Content' ) ); foreach( $gLibertySystem->mContentTypes as $cType ) { - $contentTypes[$cType['content_type_guid']] = tra( $cType['content_description'] ); + $contentTypes[$cType['content_type_guid']] = $cType['content_description']; } } ?> |
