From: Brion Vibber Date: Sun, 5 Nov 2006 11:30:09 +0000 (+0000) Subject: * checkUsernames.php now uses wfDebugLog instead of hardcoded path to log X-Git-Tag: 1.31.0-rc.0~55285 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=066d8747aec4ad5ae2711bafd1fb94d3b6ba16f6;p=lhc%2Fweb%2Fwiklou.git * checkUsernames.php now uses wfDebugLog instead of hardcoded path to log --- 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 ); } } }