From 066d8747aec4ad5ae2711bafd1fb94d3b6ba16f6 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 5 Nov 2006 11:30:09 +0000 Subject: [PATCH] * checkUsernames.php now uses wfDebugLog instead of hardcoded path to log --- RELEASE-NOTES | 1 + maintenance/checkUsernames.php | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index ffe476b38a..bd95dd3013 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/maintenance/checkUsernames.php b/maintenance/checkUsernames.php index 4c0ecdce02..60e52181a4 100644 --- a/maintenance/checkUsernames.php +++ b/maintenance/checkUsernames.php @@ -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 ); } } } -- 2.20.1