Update of /cvsroot/phpwebsite-comm/modules/article/inc
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv19667/inc
Modified Files:
runtime_categorized.php
Log Message:
Fixed summary display bug
Index: runtime_categorized.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/article/inc/runtime_categorized.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** runtime_categorized.php 18 Nov 2008 05:08:55 -0000 1.11
--- runtime_categorized.php 18 Dec 2008 05:41:58 -0000 1.12
***************
*** 33,40 ****
if (!($result))
continue;
- foreach ($result AS $key => $value) {
- if ($key > $config['summaries_per_category'])
- unset($result[$key]['summary']);
- }
$content[] = $result;
--- 33,36 ----
***************
*** 79,88 ****
$pos = $i + ($j * $rows);
foreach ($content[$pos] AS $key => $value) {
- if ($key < $config['summaries_per_category'])
- $tpl->setCurrentBlock('list_headline_summaries');
- else
- $tpl->setCurrentBlock('list_headline_titles');
$temp = new PHPWS_Article($value);
$arr = $temp->_get_tags();
$tpl->setData($arr);
$tpl->parseCurrentBlock();
--- 75,87 ----
$pos = $i + ($j * $rows);
foreach ($content[$pos] AS $key => $value) {
$temp = new PHPWS_Article($value);
$arr = $temp->_get_tags();
+ if ($key < $config['summaries_per_category']) {
+ $tpl->setCurrentBlock('list_headline_summaries');
+ }
+ else {
+ $tpl->setCurrentBlock('list_headline_titles');
+ unset($arr['SUMMARYTEXT']);
+ }
$tpl->setData($arr);
$tpl->parseCurrentBlock();
|