From: Tom Gilder Date: Tue, 18 Jan 2005 11:51:25 +0000 (+0000) Subject: Only start new session for anon users on submit, not edit X-Git-Tag: 1.5.0alpha1~895 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=1c0f56295ced9dbaf19c71dfa2b40e4f6f47d446;p=lhc%2Fweb%2Fwiklou.git Only start new session for anon users on submit, not edit --- 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();