From: <rd...@us...> - 2010-08-16 11:55:39
|
Revision: 2016 http://digir.svn.sourceforge.net/digir/?rev=2016&view=rev Author: rdg Date: 2010-08-16 11:55:31 +0000 (Mon, 16 Aug 2010) Log Message: ----------- Moved the definition of TP_DIAG_LEVEL to avoid the PHP notice "Use of undefined constant" in some situations. Modified Paths: -------------- tapirlink/trunk/www/tapir_globals.php Modified: tapirlink/trunk/www/tapir_globals.php =================================================================== --- tapirlink/trunk/www/tapir_globals.php 2010-08-16 11:54:00 UTC (rev 2015) +++ tapirlink/trunk/www/tapir_globals.php 2010-08-16 11:55:31 UTC (rev 2016) @@ -47,6 +47,17 @@ * */ +/* +* Indicate the minimum level of diagnostic messages to appear in responses. +* Options are: 0 (DEBUG), 1 (INFO), 2 (WARN), 3 (ERROR) +* Setting 1 (INFO) will avoid debug diagnostics, setting 2 (WARN) will avoid +* info and debug diagnostics, and so on. +*/ +if ( ! defined( 'TP_DIAG_LEVEL' ) ) +{ + define( 'TP_DIAG_LEVEL', 1 ); +} + // Change all parameter names to lower case if the Web Service is running if ( defined( 'TP_RUNNING_TAPIR' ) ) { @@ -447,17 +458,6 @@ } /* -* Indicate the minimum level of diagnostic messages to appear in responses. -* Options are: 0 (DEBUG), 1 (INFO), 2 (WARN), 3 (ERROR) -* Setting 1 (INFO) will avoid debug diagnostics, setting 2 (WARN) will avoid -* info and debug diagnostics, and so on. -*/ -if ( ! defined( 'TP_DIAG_LEVEL' ) ) -{ - define( 'TP_DIAG_LEVEL', 1 ); -} - -/* * Set to true if you want to track statistics */ if ( ! defined( 'TP_STATISTICS_TRACKING' ) ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |