From: Tim Starling Date: Fri, 24 Feb 2006 07:49:36 +0000 (+0000) Subject: bug X-Git-Tag: 1.6.0~292 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=8aa182976cc275acd050999d99b59c847bd5c581;p=lhc%2Fweb%2Fwiklou.git bug --- 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' ); - } }