Only start new session for anon users on submit, not edit
authorTom Gilder <tomgilder@users.mediawiki.org>
Tue, 18 Jan 2005 11:51:25 +0000 (11:51 +0000)
committerTom Gilder <tomgilder@users.mediawiki.org>
Tue, 18 Jan 2005 11:51:25 +0000 (11:51 +0000)
index.php

index 58a794b..dcfbed9 100644 (file)
--- 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();