Actually pass in a db ;)
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 16 Apr 2008 17:03:58 +0000 (17:03 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 16 Apr 2008 17:03:58 +0000 (17:03 +0000)
includes/SpecialBlockip.php

index 048a9a4..20063c0 100644 (file)
@@ -366,7 +366,7 @@ class IPBlockForm {
                        $log_type = ($this->BlockHideName) ? 'suppress' : 'block';
                        $log = new LogPage( $log_type );
                        $ok = $log->addEntry( 'block', Title::makeTitle( NS_USER, $this->BlockAddress ),
-                         $reasonstr, $logParams );
+                         $reasonstr, $logParams, $dbw );
                        # Make sure logging got through
                        if( !$ok ) {
                                $dbw->rollback();