// ... so we can finally register and load it in registration mode
if (registerExtension($ext_name, $ext_id)) {
// Errors?
- if (getTotalFatalErrors() == '0') {
+ if (!ifFatalErrorsDetected()) {
// Extension was found and successfully registered
loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_EXTENSION_REGISTERED', $ext_name));