function showErrorMessage($installer) { $title = ''; switch ($installer->errno()) { case 1: $title = $installer->installArchive() . ' - ' . _DML_UPLOAD_ERROR; break; case 2: $title = $installer->installArchive() . ' - ' . _DML_EXTRACT_FAILED; break; case 3: $title = $installer->installArchive() . ' - ' . _DML_INSTALL_FAILED; break; case 4: $title = $installer->installArchive() . ' - ' . _DML_UNINSTALL_FAILED; break; default: $title = _DML_ERROR; } HTML_DMThemes::showInstallMessage($installer->getError(), $title, 'index.php?option=com_docman§ion=themes'); }