From: Mr. E23 Date: Tue, 17 Feb 2004 22:10:19 +0000 (+0000) Subject: Added simple transactions X-Git-Tag: 1.3.0beta1~978 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=570335c7d223dbc85c4542d9736694656f701737;p=lhc%2Fweb%2Fwiklou.git Added simple transactions --- 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();