[Comoblog-commit] modules/mod_postbytopic mod_postbytopic.php,1.1,1.2
Status: Inactive
Brought to you by:
markwallis
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-12-22 03:36:57
|
Update of /cvsroot/comoblog/modules/mod_postbytopic In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31048 Modified Files: mod_postbytopic.php Log Message: 1369072 - IIS Bug in mod_postbytopic Index: mod_postbytopic.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_postbytopic/mod_postbytopic.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- mod_postbytopic.php 28 Nov 2005 11:13:14 -0000 1.1 +++ mod_postbytopic.php 22 Dec 2005 03:36:48 -0000 1.2 @@ -13,12 +13,20 @@ if (CFG_POSTBYTOPIC_TOPLINE){ $mod_postbytopic_tpl->assign('CFG_POSTBYTOPIC_TOPLINE', CFG_POSTBYTOPIC_TOPLINE ); } + + if (CFG_USE_PATH_INFO == 'no') + $iisbug = '?'; + else + $iisbug = ''; + for ($c = 0; $c < count($postbytopic_items); $c++) { if ($c % 2){ $tpl->assign('BGCOLOR', '#ffffff'); }else{ $tpl->assign('BGCOLOR', '#efefef'); } + $topic_id = $postbytopic_items[$c]['topic_id']; + $postbytopic_items[$c]['url'] = CFG_SITE_URL.'topic.php'.$iisbug.'/'.$topic_id; $mod_postbytopic_tpl->assign('ITEM', $postbytopic_items[$c]); $mod_postbytopic_tpl->parse('main.item'); } @@ -29,4 +37,4 @@ else{ $mod_contents = ''; } -?> \ No newline at end of file +?> |