X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions.php;h=eb6ba10c3f3880131f604f07380e121ae5c3cd9b;hp=11cf83c782903240b5a51600d3ed4573f125c7c1;hb=e32b39ab4a4cd504b2e27a238dac38b1a3c9d560;hpb=8c0e97fddbcbf8f00c4a3366dc9eafd96daf5a4e diff --git a/inc/extensions.php b/inc/extensions.php index 11cf83c782..eb6ba10c3f 100644 --- a/inc/extensions.php +++ b/inc/extensions.php @@ -740,13 +740,16 @@ function CREATE_NEW_EXTENSION_TASK ($admin_id, $subject, $ext) { $ext ); - // Load text for task + // Set default message if ext-foo is missing + $msg = sprintf(getMessage('ADMIN_EXT_TEXT_FILE_MISSING'), $ext); + + // Load text for task if found if (FILE_READABLE($tpl)) { // Load extension's own text template (HTML!) $msg = LOAD_TEMPLATE("ext_".$ext, true); } else { - // Load default message - $msg = LOAD_TEMPLATE("admin_new_ext", "", 0); + // Write this in debug.log as well + DEBUG_LOG(__FUNCTION__, __LINE__, $msg); } // Task not created so it's a brand-new extension which we need to register and create a task for!