Update of /cvsroot/phpwebsite-comm/modules/article/class
In directory sc8-pr-cvs1:/tmp/cvs-serv8136/class
Modified Files:
ArticleManager.php
Log Message:
Stuff done while away - Fixed news links & stuff
Index: ArticleManager.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/article/class/ArticleManager.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** ArticleManager.php 19 Jul 2003 18:08:04 -0000 1.6
--- ArticleManager.php 31 Jul 2003 21:11:43 -0000 1.7
***************
*** 328,331 ****
--- 328,332 ----
if(!$result = $GLOBALS['core']->query($sql))
return;
+ $GLOBALS['CNT_article_summaries']['content'] = '';
while($summary=$result->fetchrow(DB_FETCHMODE_ASSOC))
{
***************
*** 344,351 ****
/* Create NewsPage HTML */
$alphabet = PHPWS_User::alphabet();
! $tags['ALPHABET'] = $GLOBALS['core']->moduleLink($_SESSION['translate']->it('ALL'), 'article', array('disp'=>'news', 'newsFilter'=>'') ) . " \n";
foreach ($alphabet as $alphachar)
if ($alphachar!=$this->filter)
! $tags['ALPHABET'] .= $GLOBALS['core']->moduleLink($alphachar, 'article', array('disp'=>'news', 'newsFilter'=>$alphachar) ) . " \n";
else
$tags['ALPHABET'] .= $alphachar . " \n";
--- 345,352 ----
/* Create NewsPage HTML */
$alphabet = PHPWS_User::alphabet();
! $tags['ALPHABET'] = $GLOBALS['core']->moduleLink($_SESSION['translate']->it('ALL'), 'article', array('view'=>'news', 'newsFilter'=>'') ) . " \n";
foreach ($alphabet as $alphachar)
if ($alphachar!=$this->filter)
! $tags['ALPHABET'] .= $GLOBALS['core']->moduleLink($alphachar, 'article', array('view'=>'news', 'newsFilter'=>$alphachar) ) . " \n";
else
$tags['ALPHABET'] .= $alphachar . " \n";
***************
*** 450,456 ****
return;
- $GLOBALS['CNT_article_summaries']['title'] .= '<center><b>'
- . $_SESSION['translate']->it('Also on this Site') . '...</b></center>';
-
/* Load records to display */
$sql = 'SELECT * FROM ' . $this->sql_article_table
--- 451,454 ----
***************
*** 461,464 ****
--- 459,466 ----
/* If there are summaries to display, display 'em */
if ($this->val['summaries_on_homepage']>0)
+ {
+ $GLOBALS['CNT_article_summaries']['title'] = '<center><b>'
+ . $_SESSION['translate']->it('Also on this Site') . '...</b></center>';
+ $GLOBALS['CNT_article_summaries']['content'] = '';
for($i=0; $i < $this->val['summaries_on_homepage'] && $summary=$result->fetchrow(DB_FETCHMODE_ASSOC); $i++)
{
***************
*** 466,469 ****
--- 468,472 ----
$temp->view(false);
}
+ }
/* If there are x articles before these, display the "Prev Articles" Block */
if ($this->val['prev_n_articles']>0)
|