Added simple transactions
authorMr. E23 <e23@users.mediawiki.org>
Tue, 17 Feb 2004 22:10:19 +0000 (22:10 +0000)
committerMr. E23 <e23@users.mediawiki.org>
Tue, 17 Feb 2004 22:10:19 +0000 (22:10 +0000)
wiki.phtml

index 3fcf006..a9427e2 100644 (file)
@@ -67,6 +67,7 @@ if ( "" != $search ) {
                $wgArticle = new Article( $wgTitle );
        }
 
+       wfQuery("BEGIN", DB_WRITE);
        switch( $action ) {
                case "view":
                case "watch":
@@ -98,6 +99,7 @@ if ( "" != $search ) {
                default:
                        $wgOut->errorpage( "nosuchaction", "nosuchactiontext" );
        }
+       wfQuery("COMMIT", DB_WRITE);
 }
 
 $wgOut->output();