$mainframe->enqueueMessage(sprintf(JText::_('NNI_CANNOT_FIND_THE_REQUIRED_FILES_FOLDER'), $file_folder . '/forced'), 'message'); } else { $succes = 1; if (JFolder::exists($comp_folder . DS . $file_folder . DS . 'not_forced') && !copy_from_folder($comp_folder . DS . $file_folder . DS . 'not_forced', 0)) { $succes = 0; } if (!copy_from_folder($comp_folder . DS . $file_folder . DS . 'forced', 1)) { $succes = 0; } if ($succes) { $txt_installed = $has_installed ? JText::_('NNI_INSTALLED') : ''; $txt_installed .= $has_installed && $has_updated ? ' / ' : ''; $txt_installed .= $has_updated ? JText::_('NNI_UPDATED') : ''; $mainframe->enqueueMessage(sprintf(JText::_('NNI_THE_EXTENSION_HAS_BEEN_INSTALLED_SUCCESSFULLY'), JText::_($ext), $txt_installed), 'message'); $mainframe->enqueueMessage(JText::_('NNI_PLEASE_CLEAR_YOUR_BROWSERS_CACHE'), 'notice'); installElements($comp_folder, $file_folder); } else { $mainframe->enqueueMessage(JText::_('NNI_COULD_NOT_COPY_ALL_FILES'), 'error error_nonumber'); } } } } } } // uninstall the installer uninstallInstaller(); // Redirect with message $mainframe->redirect('index.php?option=com_installer'); /** * Copies all files from install folder */
$mainframe->enqueueMessage(sprintf(JText::_('NNI_CANNOT_FIND_THE_REQUIRED_FILES_FOLDER'), $file_folder . '/forced'), 'message'); } else { $succes = 1; if (JFolder::exists($comp_folder . DS . $file_folder . DS . 'not_forced') && !copy_from_folder($comp_folder . DS . $file_folder . DS . 'not_forced', 0)) { $succes = 0; } if (!copy_from_folder($comp_folder . DS . $file_folder . DS . 'forced', 1)) { $succes = 0; } if ($succes) { $txt_installed = $has_installed ? JText::_('NNI_INSTALLED') : ''; $txt_installed .= $has_installed && $has_updated ? ' / ' : ''; $txt_installed .= $has_updated ? JText::_('NNI_UPDATED') : ''; $mainframe->enqueueMessage(sprintf(JText::_('NNI_THE_EXTENSION_HAS_BEEN_INSTALLED_SUCCESSFULLY'), JText::_($ext), $txt_installed), 'message'); $mainframe->enqueueMessage(JText::_('NNI_PLEASE_CLEAR_YOUR_BROWSERS_CACHE'), 'notice'); installElements($file_folder); } else { $mainframe->enqueueMessage(JText::_('NNI_COULD_NOT_COPY_ALL_FILES'), 'error error_nonumber'); } } } } } } // uninstall the installer uninstallInstaller(); // Redirect with message $mainframe->redirect('index.php?option=com_installer'); /** * Copies all files from install folder */