From 1085199ea95917e274fc2e4371dc2be7fc057193 Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 11 Apr 2010 22:15:24 +0000 Subject: Use dirname instead of substr. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6692 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/F2M.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/F2M.php b/src/F2M.php index bcfbb95..5cc5b6a 100644 --- a/src/F2M.php +++ b/src/F2M.php @@ -32,7 +32,7 @@ function send_to_lists($user, $data, $post_data) { $messageId = build_message_id($time, $postId, $_SERVER['SERVER_NAME']); $forumURL = 'http://' . $_SERVER['SERVER_NAME'] . - substr($_SERVER['SCRIPT_NAME'], 0, -strlen('/posting.php')); + dirname($_SERVER['SCRIPT_NAME']); $body = $data['message']; @@ -40,7 +40,6 @@ function send_to_lists($user, $data, $post_data) { var_dump($data); var_dump($post_data); var_dump($messageId); - var_dump($forumURL); print '

'; /* -- cgit v1.2.3