From 1c0f56295ced9dbaf19c71dfa2b40e4f6f47d446 Mon Sep 17 00:00:00 2001 From: Tom Gilder Date: Tue, 18 Jan 2005 11:51:25 +0000 Subject: [PATCH] Only start new session for anon users on submit, not edit --- index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 58a794b809..dcfbed9df4 100644 --- a/index.php +++ b/index.php @@ -151,11 +151,13 @@ if( !$wgDisableInternalSearch && !is_null( $search ) && $search !== '' ) { require_once( "includes/Credits.php" ); showCreditsPage( $wgArticle ); break; - case "edit": case "submit": if( !$wgCommandLineMode && !$wgRequest->checkSessionCookie() ) { + # Send a cookie so anons get talk message notifications User::SetupSession(); } + # Continue... + case "edit": require_once( "includes/EditPage.php" ); $editor = new EditPage( $wgArticle ); $editor->submit(); -- 2.20.1