From: <sy...@us...> - 2005-05-26 18:10:51
|
Update of /cvsroot/tikiwiki/tiki/lib/notifications In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18050/lib/notifications Modified Files: Tag: BRANCH-1-9 notificationemaillib.php Log Message: missing / in the link - reverse back march change about the trailig / + add a test un the code Index: notificationemaillib.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/notifications/notificationemaillib.php,v retrieving revision 1.6.2.14 retrieving revision 1.6.2.15 diff -u -d -r1.6.2.14 -r1.6.2.15 --- notificationemaillib.php 29 Apr 2005 00:54:39 -0000 1.6.2.14 +++ notificationemaillib.php 26 May 2005 18:10:42 -0000 1.6.2.15 @@ -87,6 +87,7 @@ $smarty->assign('mail_author', $author); $foo = parse_url($_SERVER["REQUEST_URI"]); $machine = $tikilib->httpPrefix() . dirname( $foo["path"] ); + $machine = preg_replace("!/$!", "", $machine); // just incase $smarty->assign('mail_machine', $machine); $smarty->assign('forumId', $forum_info["forumId"]); if ($event == "forum_post_topic") { |