* checkUsernames.php now uses wfDebugLog instead of hardcoded path to log
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 5 Nov 2006 11:30:09 +0000 (11:30 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 5 Nov 2006 11:30:09 +0000 (11:30 +0000)
RELEASE-NOTES
maintenance/checkUsernames.php

index ffe476b..bd95dd3 100644 (file)
@@ -141,6 +141,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 1182) MATH: fixed inconsistent rendering of upper case Greek letters in TeX
 * Fix regression in streaming page dump generation
 * (bug 7801) Add support for parser function hooks in parser tests
+* checkUsernames.php now uses wfDebugLog instead of hardcoded path to log
 
 
 == Languages updated ==
index 4c0ecdc..60e5218 100644 (file)
@@ -7,7 +7,6 @@ class checkUsernames {
 
        function checkUsernames() {
                $this->stderr = fopen( 'php://stderr', 'wt' );
-               $this->log = fopen( '/home/wikipedia/logs/checkUsernames.log', 'at' );
        }
        function main() {
                $fname = 'checkUsernames::main';
@@ -24,7 +23,7 @@ class checkUsernames {
                        if ( ! User::isValidUserName( $row->user_name ) ) {
                                $out = sprintf( "%s: %6d: '%s'\n", wfWikiID(), $row->user_id, $row->user_name );
                                fwrite( $this->stderr, $out );
-                               fwrite( $this->log, $out );
+                               wfDebugLog( 'checkUsernames', $out );
                        }
                }
        }