From 8aa182976cc275acd050999d99b59c847bd5c581 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 24 Feb 2006 07:49:36 +0000 Subject: [PATCH] bug --- includes/Wiki.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Wiki.php b/includes/Wiki.php index fa7d7832e6..133d511585 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -281,7 +281,7 @@ class MediaWiki { } if ( $wgJobRunRate < 1 ) { $max = mt_getrandmax(); - if ( mt_rand( 0, $max ) < $max * $wgJobRunRate ) { + if ( mt_rand( 0, $max ) > $max * $wgJobRunRate ) { return; } $n = 1; @@ -408,8 +408,8 @@ class MediaWiki { if( wfRunHooks( 'UnknownAction', array( $action, $article ) ) ) { $output->errorpage( 'nosuchaction', 'nosuchactiontext' ); } + } wfProfileOut( 'MediaWiki::performAction' ); - } } -- 2.20.1