dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added simple transactions
[lhc/web/wiklou.git]
/
wiki.phtml
diff --git
a/wiki.phtml
b/wiki.phtml
index
3fcf006
..
a9427e2
100644
(file)
--- 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();