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