diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2014-03-25 13:06:45 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2014-03-25 13:06:45 +0800 |
commit | 050b3b91d5d3570f57d9236aeff72b409e8a19d1 (patch) | |
tree | df35d3b8907a45fb57f600ee24f329290a01198c | |
parent | 42216db52fb0ab47edbda65ff3e924069d8d93e7 (diff) | |
download | pttbbs-050b3b91d5d3570f57d9236aeff72b409e8a19d1.tar pttbbs-050b3b91d5d3570f57d9236aeff72b409e8a19d1.tar.gz pttbbs-050b3b91d5d3570f57d9236aeff72b409e8a19d1.tar.bz2 pttbbs-050b3b91d5d3570f57d9236aeff72b409e8a19d1.tar.lz pttbbs-050b3b91d5d3570f57d9236aeff72b409e8a19d1.tar.xz pttbbs-050b3b91d5d3570f57d9236aeff72b409e8a19d1.tar.zst pttbbs-050b3b91d5d3570f57d9236aeff72b409e8a19d1.zip |
Correct URL file source. (posting will change file name one time)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5957 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 32e88fe4..27da23fb 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -1449,16 +1449,6 @@ do_post_article(int edflags) owner = cuser.userid; #endif -#ifdef QUERY_ARTICLE_URL - if (IsBoardForWeb(bp)) { - char buf[STRLEN]; - if (GetWebUrl(bp, &postfile, buf, sizeof(buf))) { - log_filef(fpath, LOG_CREAT, - "กฐ " URL_DISPLAYNAME ": %s\n", buf); - } - } -#endif - // ---- BEGIN OF MONEY VERIFICATION ---- // money verification @@ -1517,6 +1507,16 @@ do_post_article(int edflags) else { char addPost = 0; + +#ifdef QUERY_ARTICLE_URL + if (IsBoardForWeb(bp)) { + char url[STRLEN]; + if (GetWebUrl(bp, &postfile, url, sizeof(url))) { + log_filef(genbuf, LOG_CREAT, + "กฐ " URL_DISPLAYNAME ": %s\n", url); + } + } +#endif rename(genbuf, fpath); setbtotal(currbid); |