[Comoblog-commit] modules/mod_prevnext mod_prevnext.php,1.2,1.3
Status: Inactive
Brought to you by:
markwallis
|
From: iamdecal <iam...@us...> - 2006-02-17 13:59:38
|
Update of /cvsroot/comoblog/modules/mod_prevnext In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29786/mod_prevnext Modified Files: mod_prevnext.php Log Message: removed some spurious warnings that were causing problems at test.iamdecal.co.uk - (cvs build of site and modules) getting this site ready for a proper test of skining modules that inherit a global style search enginge friendly urls ---------------------------------------------------------------------- Enter Log. Lines beginning with `CVS:' are removed automatically Committing in . Modified Files: mod_postbytitle/include/mod_postbytitle.inc.php mod_prevnext/mod_prevnext.php mod_prevnext/include/mod_prevnext.inc.php mod_recentpostbytitle/include/mod_recentpostbytitle.inc.php mod_rss2/include/mod_rss2.inc.php ---------------------------------------------------------------------- Index: mod_prevnext.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_prevnext/mod_prevnext.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- mod_prevnext.php 11 Dec 2005 21:53:04 -0000 1.2 +++ mod_prevnext.php 17 Feb 2006 13:59:28 -0000 1.3 @@ -14,39 +14,23 @@ ){ $post_id = substr($_SERVER['PATH_INFO'],1,strlen($_SERVER['PATH_INFO'])-1); } - -echo "post_id=(" . $post_id .")"; -echo "<br/>(SERVER-PATH_INFO " . $_SERVER['PATH_INFO'] .")"; -echo "<br/>(SERVER-SCRIPT_FILENAME " . $_SERVER['SCRIPT_FILENAME'] .")"; -ECHO "<hr>"; if($post_id) { - - $prevnext_prevlink = mod_prevnext_post_prev($post_id); $prevnext_nextlink = mod_prevnext_post_next($post_id); - echo $prevnext_prevlink; - echo $prevnext_nextlink; - $mod_prevnext_tpl = new XTemplate (CFG_BASE_PATH.'/modules/mod_prevnext/templates/'.$mod_pos.'/mod_prevnext.tpl.htm'); - - if ($prevnext_nextlink) { - echo "next link "; - $mod_prevnext_tpl->assign('CFG_MOD_PREVNEXT_NEXTTEXT', CFG_MOD_PREVNEXT_NEXTTEXT ); + $mod_prevnext_tpl->assign('CFG_MOD_PREVNEXT_NEXTTEXT', CFG_MOD_PREVNEXT_NEXTTEXT ); $mod_prevnext_tpl->assign('CFG_MOD_PREVNEXT_NEXTLINK', $prevnext_nextlink ); } else { - echo "no next link "; $mod_prevnext_tpl->assign('CFG_MOD_PREVNEXT_NEXTTEXT', CFG_MOD_PREVNEXT_NONEXTTEXT ); $mod_prevnext_tpl->assign('CFG_MOD_PREVNEXT_NEXTLINK', '#' ); } if ($prevnext_prevlink) { - echo " prev link "; $mod_prevnext_tpl->assign('CFG_MOD_PREVNEXT_PREVTEXT', CFG_MOD_PREVNEXT_PREVTEXT ); $mod_prevnext_tpl->assign('CFG_MOD_PREVNEXT_PREVLINK', $prevnext_prevlink ); } else { - echo " no prev link "; $mod_prevnext_tpl->assign('CFG_MOD_PREVNEXT_PREVTEXT', CFG_MOD_PREVNEXT_NOPREVTEXT ); $mod_prevnext_tpl->assign('CFG_MOD_PREVNEXT_PREVLINK', '#' ); } |