X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions%2Fext-debug.php;h=9a3296b7ef1aa6498d167e20d8d6eef59ee3cd52;hp=2e080a7c99b60f70e1a869ba8c2c92d58f781eb1;hb=0dd76819236495cb7cfe97d8152700b895261eea;hpb=2df9f7a53f8b1dd5164f87824a324ccb3b6634cb diff --git a/inc/extensions/ext-debug.php b/inc/extensions/ext-debug.php index 2e080a7c99..9a3296b7ef 100644 --- a/inc/extensions/ext-debug.php +++ b/inc/extensions/ext-debug.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * Copyright (c) 2009 - 2013 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -50,10 +50,10 @@ setExtensionVersionHistory(array('0.0.0')); setExtensionAlwaysActive('Y'); // This extension is in development (non-productive) -enableExtensionProductive(false); +enableExtensionProductive(FALSE); switch (getExtensionMode()) { - case 'register': // Do stuff when installation is running + case 'setup': // Do stuff when installation is running // Table for debug log entries addDropTableSql('debug_log'); addCreateTableSql('debug_log', " @@ -61,7 +61,7 @@ switch (getExtensionMode()) { `sender_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, `timestamp` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00', `file` VARCHAR(255) NOT NULL DEFAULT '', -`line` MEDIUMINT NOT NOT NULL DEFAULT 0, +`line` MEDIUMINT NOT NULL DEFAULT 0, `message` LONGTEXT NOT NULL, `comment` TINYTEXT NOT NULL, `status` ENUM('NEW','PENDING','ACCEPTED','FIXED','INVALID','DUBLICATE','SPAM') NOT NULL DEFAULT 'NEW', @@ -179,7 +179,7 @@ INDEX `client_log` (`client_id`, `log_id`)", break; default: // Unknown extension mode - logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName())); + reportBug(__FILE__, __LINE__, sprintf('Unknown extension mode %s in extension %s detected.', getExtensionMode(), getCurrentExtensionName())); break; } // END - switch