From 986b8cd60efa6b37d90db0a155ef2e29d15e3cf0 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Sun, 31 Dec 2006 13:01:15 +0000 Subject: translate content_description when it's loaded that we don't have to worry about it later --- LibertySystem.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'LibertySystem.php') 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 */ @@ -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; } } -- cgit v1.3