[Comoblog-commit] modules/mod_postbytitle mod_postbytitle.php,1.1,1.2
Status: Inactive
Brought to you by:
markwallis
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-11-28 04:04:42
|
Update of /cvsroot/comoblog/modules/mod_postbytitle In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10591 Modified Files: mod_postbytitle.php Log Message: Fix for post linking method in mod_postbytitle. Supports both IIS and non-IIS installs now Index: mod_postbytitle.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_postbytitle/mod_postbytitle.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- mod_postbytitle.php 27 Nov 2005 21:10:07 -0000 1.1 +++ mod_postbytitle.php 28 Nov 2005 04:04:34 -0000 1.2 @@ -10,16 +10,22 @@ $mod_postbytitle_tpl = new XTemplate (CFG_BASE_PATH.'/modules/mod_postbytitle/templates/'.$mod_pos.'/mod_postbytitle.tpl.htm'); -if (CFG_POSTBYTITLE_TOPLINE) - $mod_postbytitle_tpl->assign('CFG_POSTBYTITLE_TOPLINE', CFG_POSTBYTITLE_TOPLINE ); - + if (CFG_POSTBYTITLE_TOPLINE) + $mod_postbytitle_tpl->assign('CFG_POSTBYTITLE_TOPLINE', CFG_POSTBYTITLE_TOPLINE ); + if (CFG_USE_PATH_INFO == 'no') + $iisbug = '?'; + else + $iisbug = ''; + for ($c = 0; $c < count($postbytitle_items); $c++) { if ($c % 2) $tpl->assign('BGCOLOR', '#ffffff'); else $tpl->assign('BGCOLOR', '#efefef'); - + + $post_id = $postbytitle_items[$c]['post_id']; + $postbytitle_items[$c]['url'] = CFG_SITE_URL.'post.php'.$iisbug.'/'.$post_id; $mod_postbytitle_tpl->assign('ITEM', $postbytitle_items[$c]); $mod_postbytitle_tpl->parse('main.item'); } @@ -29,4 +35,4 @@ } else $mod_contents = ''; -?> \ No newline at end of file +?> |