X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions%2Fext-yoomedia.php;h=9d5fd0d52caf3e72fb0a3e1e612e5fd2eb72409d;hp=829a0f6314fdeac9bee27dbd1ccccae4dd09061b;hb=0dd76819236495cb7cfe97d8152700b895261eea;hpb=2df9f7a53f8b1dd5164f87824a324ccb3b6634cb diff --git a/inc/extensions/ext-yoomedia.php b/inc/extensions/ext-yoomedia.php index 829a0f6314..9d5fd0d52c 100644 --- a/inc/extensions/ext-yoomedia.php +++ b/inc/extensions/ext-yoomedia.php @@ -17,7 +17,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,11 +50,11 @@ setExtensionVersionHistory(array('0.0.0')); // Keep this extension always active! setExtensionAlwaysActive('Y'); -// This extension is deprecated! -// @TODO Only deprecated when 'ext-network' is ready! setExtensionDeprecated('Y'); +// This extension is deprecated +// @TODO Only deprecated when 'ext-network' is ready: setExtensionDeprecated('Y'); switch (getExtensionMode()) { - case 'register': // Do stuff when installation is running + case 'setup': // Do stuff when installation is running // SQL commands to run addConfigAddSql('yoomedia_id', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 0'); addConfigAddSql('yoomedia_sid', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 0'); @@ -99,15 +99,14 @@ UNIQUE INDEX `y_type` (`type`, `y_id`)", break; case 'update': // Update an extension - switch (getCurrentExtensionVersion()) - { + switch (getCurrentExtensionVersion()) { case '0.0.1': // SQL queries for v0.0.1 addExtensionSql(''); // Update notes (these will be set as task text!) setExtensionUpdateNotes(''); break; - } + } // END - switch break; case 'modify': // When the extension got modified @@ -146,9 +145,9 @@ UNIQUE INDEX `y_type` (`type`, `y_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] ?>