X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-optimize.php;h=1a1d36f592cb5e29fc2fe57d06dda05e443461fe;hb=7eb63ce64c46c426d54087f5c8e06210093c5492;hp=578a990b8cfe506d80dee2c70bcb368f6b5c21a2;hpb=3f7f0051c91c54cb691303b9d49fb9cd1a7a4e8c;p=mailer.git diff --git a/inc/extensions/ext-optimize.php b/inc/extensions/ext-optimize.php index 578a990b8c..1a1d36f592 100644 --- a/inc/extensions/ext-optimize.php +++ b/inc/extensions/ext-optimize.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0 setExtensionAlwaysActive('Y'); switch (getExtensionMode()) { - case 'register': // Do stuff when installation is running + case 'setup': // Do stuff when installation is running // SQL commands to run addDropTableSql('optimize_gain'); addCreateTableSql('optimize_gain', " @@ -78,8 +78,7 @@ PRIMARY KEY (`id`)", break; case 'update': // Update an extension - switch (getCurrentExtensionVersion()) - { + switch (getCurrentExtensionVersion()) { case '0.0.1': // SQL queries for v0.0.1 // Update notes (these will be set as task text!) setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist."); @@ -109,7 +108,7 @@ PRIMARY KEY (`id`)", // Update notes (these will be set as task text!) setExtensionUpdateNotes("HTML-Code ausgelagert in Templates."); break; - } + } // END - switch break; case 'modify': // When the extension got modified @@ -122,9 +121,9 @@ PRIMARY KEY (`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 // [EOF] ?>