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 NoticeDirectory filter : [ all ] / postnuke_official / html / modules / comments [ view in CVS ]
| Date | Directory [filter] | File(s) [view] | Author [filter] |
| 04 Aug 2002 03:40:39 | postnuke_official/html/modules/comments | pnuser.php,1.9,1.10 pnuserapi.php,1.15,1.16 | Carl P. Corliss |
| Minor bugfixes | |||
Update of /home/cvsroot/postnuke_official/html/modules/comments
In directory ns7.hostnuke.net:/tmp/cvs-serv18045/html/modules/comments
Modified Files:
pnuser.php pnuserapi.php
Log Message:
Minor bugfixes
Index: pnuser.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/comments/pnuser.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** pnuser.php 26 Jul 2002 02:52:56 -0000 1.9
--- pnuser.php 4 Aug 2002 03:40:36 -0000 1.10
***************
*** 30,45 ****
// @return a string containing the HTML, or VOID if an internal error.
//
!
include_once('modules/comments/rendering/factory.php');
function comments_user_main($args) {
$args['type'] = 'user';
$args['modid'] = 14;
$args['itemid'] = 0;
$args['returnurl'] = pnModURL('comments','user','main');
! $args['sortby'] = _COM_SORTBY_DATE;
// load the display settings
pnModAPILoad('comments');
- $settings = pnModAPIFunc('comments','user','GetOptions');
$comments = pnModAPIFunc('comments','user','get',$args);
--- 30,46 ----
// @return a string containing the HTML, or VOID if an internal error.
//
! include_once('modules/comments/common/CommonFunctions.php');
include_once('modules/comments/rendering/factory.php');
function comments_user_main($args) {
+ $settings = pnModAPIFunc('comments','user','GetOptions');
+
$args['type'] = 'user';
$args['modid'] = 14;
$args['itemid'] = 0;
$args['returnurl'] = pnModURL('comments','user','main');
! $args['sortby'] = _COM_SORTBY_LINEAGE;
// load the display settings
pnModAPILoad('comments');
$comments = pnModAPIFunc('comments','user','get',$args);
Index: pnuserapi.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/comments/pnuserapi.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** pnuserapi.php 26 Jul 2002 02:52:56 -0000 1.15
--- pnuserapi.php 4 Aug 2002 03:40:36 -0000 1.16
***************
*** 42,57 ****
return array('depth' => pnSessionGetVar('comments_depth'),
'order' => pnSessionGetVar('comments_order'),
'rendertype' => pnSessionGetVar('comments_rendertype'));
} elseif (pnUserLoggedIn()) { // user logged in -- use user settings
return array('depth' => pnUserGetVar('comments_depth'),
'order' => pnUserGetVar('comments_order'),
'rendertype' => pnUserGetVar('comments_rendertype'));
} elseif (!pnUserLoggedIn()) { // user not logged in -- use admin settings
return array('depth' => pnModGetVar('comments','depth'),
'order' => pnModGetVar('comments','order'),
'rendertype' => pnModGetVar('comments','rendertype'));
} else { // couldn't find settings! use basic defaults
! return array('depth' => '-1',
! 'order' => 'ASC',
'rendertype' => 'flat');
}
--- 42,61 ----
return array('depth' => pnSessionGetVar('comments_depth'),
'order' => pnSessionGetVar('comments_order'),
+ 'sortby' => pnSessionGetVar('comments_sortby'),
'rendertype' => pnSessionGetVar('comments_rendertype'));
} elseif (pnUserLoggedIn()) { // user logged in -- use user settings
return array('depth' => pnUserGetVar('comments_depth'),
'order' => pnUserGetVar('comments_order'),
+ 'sortby' => pnUserGetVar('comments_sortby'),
'rendertype' => pnUserGetVar('comments_rendertype'));
} elseif (!pnUserLoggedIn()) { // user not logged in -- use admin settings
return array('depth' => pnModGetVar('comments','depth'),
'order' => pnModGetVar('comments','order'),
+ 'sortby' => pnModGetVar('comments','sortby'),
'rendertype' => pnModGetVar('comments','rendertype'));
} else { // couldn't find settings! use basic defaults
! return array('depth' => -1,
! 'order' => _COM_SORT_ASC,
! 'sortby' => _COM_SORTBY_LINEAGE,
'rendertype' => 'flat');
}
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 |