|
@@ 692-698 (lines=7) @@
|
| 689 |
|
} |
| 690 |
|
} |
| 691 |
|
|
| 692 |
|
if (!JFile::exists($path) || empty($xmldata)) |
| 693 |
|
{ |
| 694 |
|
$app->enqueueMessage(JText::sprintf('COM_LOCALISE_ERROR_NO_XML', JText::_('JSITE'), $data['language'] . '.xml', 'error')); |
| 695 |
|
$app->redirect(JRoute::_('index.php?option=com_localise&view=package&layout=edit&id=' . $this->getState('package.id'), false)); |
| 696 |
|
|
| 697 |
|
return false; |
| 698 |
|
} |
| 699 |
|
|
| 700 |
|
// Generate site package |
| 701 |
|
$site_package_files = array(); |
|
@@ 899-905 (lines=7) @@
|
| 896 |
|
$xmldata = file_get_contents($path); |
| 897 |
|
} |
| 898 |
|
|
| 899 |
|
if (!JFile::exists($path) || empty($xmldata)) |
| 900 |
|
{ |
| 901 |
|
$app->enqueueMessage(JText::sprintf('COM_LOCALISE_ERROR_NO_XML', JText::_('JADMINISTRATOR'), $data['language'] . '.xml', 'error')); |
| 902 |
|
$app->redirect(JRoute::_('index.php?option=com_localise&view=package&layout=edit&id=' . $this->getState('package.id'), false)); |
| 903 |
|
|
| 904 |
|
return false; |
| 905 |
|
} |
| 906 |
|
|
| 907 |
|
// Generate administrator package |
| 908 |
|
$admin_package_files = array(); |