]> git.mjollnir.org Git - moodle.git/commitdiff
Fixing up comments on debugging()
authormoodler <moodler>
Thu, 14 Sep 2006 04:31:05 +0000 (04:31 +0000)
committermoodler <moodler>
Thu, 14 Sep 2006 04:31:05 +0000 (04:31 +0000)
lib/weblib.php

index f3519c8d450493db173e21909393069619c04eb8..a635b186d364861505a23da659b98e397f4af496 100644 (file)
@@ -5218,12 +5218,12 @@ function page_doc_link($text='', $iconpath='') {
  * to the specified level: E_NOTICE, E_ALL, E_STRICT etc
  * eg use like this:
  *
- * if (debugging()) { echo "some normal debug info" } 
- *
- * debugging("something really picky", E_STRICT);
+ * 1)  debugging('a normal notice');
+ * 2)  debugging('something really picky', E_STRICT);
+ * 3)  if (debugging()) { echo "a bunch of commands could be here" } 
  *
+ * @param string $message a message to print
  * @param int $level the level at which this debugging statement should show
- * @param string $message a message to print if possible
  * @return bool
  */
 function debugging($message='', $level=E_NOTICE) {