r55396 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r55395‎ | r55396 | r55397 >
Date:21:35, 20 August 2009
Author:ialex
Status:ok
Tags:
Comment:
Document wfWarn() function
Modified paths:
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/GlobalFunctions.php
@@ -3053,6 +3053,16 @@
30543054 }
30553055 }
30563056
 3057+/**
 3058+ * Send a warning either to the debug log or in a PHP error depending on
 3059+ * $wgDevelopmentWarnings
 3060+ *
 3061+ * @param $msg String: message to send
 3062+ * @param $callerOffset Integer: number of itmes to go back in the backtrace to
 3063+ * find the correct caller (1 = function calling wfWarn, ...)
 3064+ * @param $level Integer: PHP error level; only used when $wgDevelopmentWarnings
 3065+ * is true
 3066+ */
30573067 function wfWarn( $msg, $callerOffset = 1, $level = E_USER_NOTICE ) {
30583068 $callers = wfDebugBacktrace();
30593069 if( isset( $callers[$callerOffset+1] ) ){

Follow-up revisions

RevisionCommit summaryAuthorDate
r88354Fixing typo from r55396 + code styl/whitespacekrinkle21:54, 17 May 2011

Status & tagging log