summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-12-31 13:01:15 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-12-31 13:01:15 +0000
commit986b8cd60efa6b37d90db0a155ef2e29d15e3cf0 (patch)
treea14d939195c5a3bb63e782baf375a48542535407
parenta4d845711d5da0568f5b1ae270ca61794163df87 (diff)
downloadliberty-986b8cd60efa6b37d90db0a155ef2e29d15e3cf0.tar.gz
liberty-986b8cd60efa6b37d90db0a155ef2e29d15e3cf0.tar.bz2
liberty-986b8cd60efa6b37d90db0a155ef2e29d15e3cf0.zip
translate content_description when it's loaded that we don't have to worry about it later
-rwxr-xr-xLibertySystem.php4
-rw-r--r--get_content_list_inc.php4
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'];
}
}
?>