summaryrefslogtreecommitdiff
path: root/menu_items.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2008-07-29 18:05:00 +0000
committerLester Caine <lester@lsces.co.uk>2008-07-29 18:05:00 +0000
commit2c5d24448536c50241c02b96adfe8c8e3dba9661 (patch)
treea7197a1d5294b95fd0ceb2916304b09f2d62dbf1 /menu_items.php
parent3349a7ff28bdbe6b31f8941e63148fe408a69d43 (diff)
downloadnexus-2c5d24448536c50241c02b96adfe8c8e3dba9661.tar.gz
nexus-2c5d24448536c50241c02b96adfe8c8e3dba9661.tar.bz2
nexus-2c5d24448536c50241c02b96adfe8c8e3dba9661.zip
Use results from getContentList directly
Diffstat (limited to 'menu_items.php')
-rw-r--r--menu_items.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/menu_items.php b/menu_items.php
index f2b477a..01a36de 100644
--- a/menu_items.php
+++ b/menu_items.php
@@ -1,7 +1,7 @@
<?php
/**
* @author xing <xing@synapse.plus.com>
- * @version $Revision: 1.8 $
+ * @version $Revision: 1.9 $
* @package nexus
* @subpackage functions
*/
@@ -26,7 +26,7 @@ $gBitSmarty->assign( 'contentSelect', $contentSelect );
$gBitSmarty->assign( 'contentTypes', $contentTypes );
$cList[''] = '';
-foreach( $contentList['data'] as $cItem ) {
+foreach( $contentList as $cItem ) {
$cList[$contentTypes[$cItem['content_type_guid']]][$cItem['content_id']] = $cItem['title'].' [id: '.$cItem['content_id'].']';
}
$gBitSmarty->assign( 'contentList', $cList );