diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-05-19 22:27:43 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-05-19 22:27:43 +0800 |
commit | 2219ad3e3f26c4d3bf0727c26bda398133e6e42e (patch) | |
tree | 51f725a235baf2f94e6013f46185333328f9e970 /mbbsd | |
parent | 91d769f327cadedc47756455870fe106d97371b7 (diff) | |
download | pttbbs-2219ad3e3f26c4d3bf0727c26bda398133e6e42e.tar pttbbs-2219ad3e3f26c4d3bf0727c26bda398133e6e42e.tar.gz pttbbs-2219ad3e3f26c4d3bf0727c26bda398133e6e42e.tar.bz2 pttbbs-2219ad3e3f26c4d3bf0727c26bda398133e6e42e.tar.lz pttbbs-2219ad3e3f26c4d3bf0727c26bda398133e6e42e.tar.xz pttbbs-2219ad3e3f26c4d3bf0727c26bda398133e6e42e.tar.zst pttbbs-2219ad3e3f26c4d3bf0727c26bda398133e6e42e.zip |
fix bug of unable to change the title while reediting
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2008 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index d448bbc0..a48ad6af 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -912,10 +912,11 @@ edit_post(int ent, fileheader_t * fhdr, char *direct) if (vedit(fpath, 0, NULL) != -1) { Rename(fpath, genbuf); -/* Ptt: The code is unnecessary now because use the same name as original name - if (!(currbrdattr & BRD_HIDE) && (!bp->level || (currbrdattr & BRD_POSTMASK))) - do_crosspost(ALLPOST, fhdr, fpath); -*/ + if(strcmp(save_title, fhdr->title)) // Ptt: here is the black hole problem + { + strcpy(fhdr->title, save_title); + substitute_ref_record(direct, fhdr, ent); + } } return FULLUPDATE; } |