Xaraya / Postnuke CVS Notices - Message

Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites

View Statistics - Next Notice - Previous Notice

Directory filter : [ all ] / postnuke_modules / articles / pnblocks [ view in CVS ]

Date Directory [filter] File(s) [view] Author [filter]
16 Aug 2002 15:52:11postnuke_modules/articles/pnblockstopitems.php,1.1,1.2Mike
 AND categories, catid, modules aliases for short URLs and some other stuff

Update of /home/cvsroot/postnuke_modules/articles/pnblocks
In directory ns7.hostnuke.net:/tmp/cvs-serv7872/pnblocks

Modified Files:
	topitems.php 
Log Message:
AND categories, catid, modules aliases for short URLs and some other stuff


Index: topitems.php
===================================================================
RCS file: /home/cvsroot/postnuke_modules/articles/pnblocks/topitems.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** topitems.php	16 Aug 2002 14:18:09 -0000	1.1
--- topitems.php	16 Aug 2002 15:52:09 -0000	1.2
***************
*** 88,93 ****
         $aids[] = $topitem['itemid'];
      }
!     $articles = pnModAPIFunc('articles','user','getlist',
!                              array('aids' => $aids));
  
      // see if we're currently displaying an article
--- 88,104 ----
         $aids[] = $topitem['itemid'];
      }
!     $articles = pnModAPIFunc('articles','user','getall',
!                              array('aids' => $aids,
!                                    'fields' => array('aid','title','pubtypeid')
!                                   )
!                             );
! 
!     if (!isset($articles) || !is_array($articles) || count($articles) == 0) {
!        return;
!     }
!     foreach ($articles as $article) {
!         $title[$article['aid']] = $article['title'];
!         $pubtypeid[$article['aid']] = $article['pubtypeid'];
!     }
  
      // see if we're currently displaying an article
***************
*** 109,113 ****
          $aid = $topitem['itemid'];
          if ($curaid == $aid) {
!             $output->Text(pnVarPrepForDisplay($articles[$aid]['title']));
          } else {
              $output->URL(pnModURL('articles',
--- 120,124 ----
          $aid = $topitem['itemid'];
          if ($curaid == $aid) {
!             $output->Text(pnVarPrepForDisplay($title[$aid]));
          } else {
              $output->URL(pnModURL('articles',
***************
*** 115,120 ****
                                    'display',
                                    array('aid' => $aid,
!                                        'ptid' => $articles[$aid]['pubtypeid'])),
!                              pnVarPrepForDisplay($articles[$aid]['title']));
          }
          $output->Text(' (' . $topitem['hits'] . ' )');
--- 126,131 ----
                                    'display',
                                    array('aid' => $aid,
!                                        'ptid' => $pubtypeid[$aid])),
!                              pnVarPrepForDisplay($title[$aid]));
          }
          $output->Text(' (' . $topitem['hits'] . ' )');


Directory filter : [ all ] / postnuke_modules / articles / pnblocks [ view in CVS ]

View Statistics - Next Notice - Previous Notice


Visit Developer Site - Browse CVS Repository Syndicate via backend.rss
(max. once per hour please)
Powered by CVSNotice 0.1.3