tyop
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 29 Jan 2006 00:46:29 +0000 (00:46 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 29 Jan 2006 00:46:29 +0000 (00:46 +0000)
FancyCaptcha.php

index 4a6b438e4ce3ced0161fb1915ec40ec0317f69a1..e6363281d1acb251226fa5490d6a21fb24ca856f 100644 (file)
@@ -106,10 +106,9 @@ class FancyCaptcha extends SimpleCaptcha {
         */
        function pickImage() {
                global $wgCaptchaDirectory;
-               $pick = mt_rand( 0, $this->countFiles( $wgCaptchaDirectory ) );
+               $n = mt_rand( 0, $this->countFiles( $wgCaptchaDirectory ) );
                $dir = opendir( $wgCaptchaDirectory );
                
-               $n = mt_rand( 0, 16 );
                $count = 0;
                
                $entry = readdir( $dir );