diff options
author | uckelman <uckelman@nomic.net> | 2010-04-11 22:15:24 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-04-11 22:15:24 +0000 |
commit | 1085199ea95917e274fc2e4371dc2be7fc057193 (patch) | |
tree | bed8b92fd6bf4b5baf1071f580cecb591479c02e /src/F2M.php | |
parent | 81d1496b0038a551503a4f844de17fd8f2564beb (diff) |
Use dirname instead of substr.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6692 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src/F2M.php')
-rw-r--r-- | src/F2M.php | 3 |
1 files changed, 1 insertions, 2 deletions
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 '</p>'; /* |