@@ 587-593 (lines=7) @@ | ||
584 | $app = JFactory::getApplication(); |
|
585 | ||
586 | // Prevent generating and downloading Master package |
|
587 | if (strpos($data['name'], 'master_') !== false) |
|
588 | { |
|
589 | $app->enqueueMessage(JText::sprintf('COM_LOCALISE_ERROR_MASTER_PACKAGE_DOWNLOAD_FORBIDDEN', $data['name']), 'warning'); |
|
590 | $app->redirect(JRoute::_('index.php?option=com_localise&view=packagefile&layout=edit&id=' . $this->getState('packagefile.id'), false)); |
|
591 | ||
592 | return false; |
|
593 | } |
|
594 | ||
595 | $administrator = array(); |
|
596 | $site = array(); |
@@ 603-609 (lines=7) @@ | ||
600 | $app = JFactory::getApplication(); |
|
601 | ||
602 | // Prevent generating and downloading Master package |
|
603 | if (strpos($data['name'], 'master_') !== false) |
|
604 | { |
|
605 | $app->enqueueMessage(JText::sprintf('COM_LOCALISE_ERROR_MASTER_PACKAGE_DOWNLOAD_FORBIDDEN', $data['name']), 'warning'); |
|
606 | $app->redirect(JRoute::_('index.php?option=com_localise&view=package&layout=edit&id=' . $this->getState('package.id'), false)); |
|
607 | ||
608 | return false; |
|
609 | } |
|
610 | ||
611 | // Necessary variables if xx-XX.localise.php is not present in target language |
|
612 | $params = JComponentHelper::getParams('com_localise'); |