* API: Add documentation to important API classes
[lhc/web/wiklou.git] / includes / Block.php
index b55aa4f..9423b88 100644 (file)
@@ -371,6 +371,7 @@ class Block {
                $dbw = wfGetDB( DB_MASTER );
 
                $this->validateBlockParams();
+               $this->initialiseRange();
 
                # Don't collide with expired blocks
                Block::purgeExpired();
@@ -569,7 +570,7 @@ class Block {
                
                ## Allow hooks to cancel the autoblock.
                if (!wfRunHooks( 'AbortAutoblock', array( $autoblockIP, &$this ) )) {
-                       wfDebug( "Autoblock aborted by hook." );
+                       wfDebug( "Autoblock aborted by hook.\n" );
                        return false;
                }