[geeklog-cvs] geeklog: Display "thank you" message when url_rewrite is enabled
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Fri Apr 10 13:02:43 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/f178f2b167ae
changeset: 6904:f178f2b167ae
user: Dirk Haun <dirk at haun-online.de>
date: Fri Apr 10 18:59:22 2009 +0200
description:
Display "thank you" message when url_rewrite is enabled
diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
public_html/comment.php | 6 ++++--
diffs (16 lines):
diff -r 14f8191e6437 -r f178f2b167ae public_html/comment.php
--- a/public_html/comment.php Fri Apr 10 18:58:37 2009 +0200
+++ b/public_html/comment.php Fri Apr 10 18:59:22 2009 +0200
@@ -90,8 +90,10 @@
'article', COM_applyFilter ($_POST['postmode']));
if ($ret == -1) {
- $display = COM_refresh (COM_buildUrl ($_CONF['site_url']
- . "/article.php?story=$sid&msg=15"));
+ $url = COM_buildUrl($_CONF['site_url'] . '/article.php?story='
+ . $sid);
+ $url .= (strpos($url, '?') ? '&' : '?') . 'msg=15';
+ $display = COM_refresh($url);
} elseif ( $ret > 0 ) { // failure //FIXME: some failures should not return to comment form
$display .= COM_siteHeader ('menu', $LANG03[1])
. CMT_commentForm ($_POST['title'], $_POST['comment'],
More information about the geeklog-cvs
mailing list