From 570335c7d223dbc85c4542d9736694656f701737 Mon Sep 17 00:00:00 2001 From: "Mr. E23" Date: Tue, 17 Feb 2004 22:10:19 +0000 Subject: [PATCH] Added simple transactions --- wiki.phtml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wiki.phtml b/wiki.phtml index 3fcf006245..a9427e296d 100644 --- a/wiki.phtml +++ b/wiki.phtml @@ -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(); -- 2.20.1