Merge "docs/hooks.txt: fix incorrect description of UploadForm:* hooks"
[lhc/web/wiklou.git] / includes / FileDeleteForm.php
index 783de1c..898005e 100644 (file)
@@ -212,7 +212,7 @@ class FileDeleteForm {
                                                $logEntry->setTags( $tags );
                                                $logid = $logEntry->insert();
                                                $dbw->onTransactionPreCommitOrIdle(
-                                                       function () use ( $dbw, $logEntry, $logid ) {
+                                                       function () use ( $logEntry, $logid ) {
                                                                $logEntry->publish( $logid );
                                                        },
                                                        __METHOD__