@@ 47-56 (lines=10) @@ | ||
44 | $view->setModel($packages); |
|
45 | } |
|
46 | // Check for edit form. |
|
47 | elseif ($vName == 'language' && $layout == 'edit' |
|
48 | && !$this->checkEditId('com_localise.edit.language', $id)) |
|
49 | { |
|
50 | // Somehow the person just went to the form - we don't allow that. |
|
51 | $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id)); |
|
52 | $this->setMessage($this->getError(), 'error'); |
|
53 | $this->setRedirect(JRoute::_('index.php?option=com_localise&view=languages', false)); |
|
54 | ||
55 | return false; |
|
56 | } |
|
57 | elseif ($vName == 'translation' && ($layout == 'edit' || $layout == 'raw') |
|
58 | && !$this->checkEditId('com_localise.edit.translation', $id)) |
|
59 | { |
|
@@ 57-66 (lines=10) @@ | ||
54 | ||
55 | return false; |
|
56 | } |
|
57 | elseif ($vName == 'translation' && ($layout == 'edit' || $layout == 'raw') |
|
58 | && !$this->checkEditId('com_localise.edit.translation', $id)) |
|
59 | { |
|
60 | // Somehow the person just went to the form - we don't allow that. |
|
61 | $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id)); |
|
62 | $this->setMessage($this->getError(), 'error'); |
|
63 | $this->setRedirect(JRoute::_('index.php?option=com_localise&view=translations', false)); |
|
64 | ||
65 | return false; |
|
66 | } |
|
67 | elseif ($vName == 'packagefile' && $layout == 'edit' |
|
68 | && !$this->checkEditId('com_localise.edit.packagefile', $id)) |
|
69 | { |
|
@@ 67-76 (lines=10) @@ | ||
64 | ||
65 | return false; |
|
66 | } |
|
67 | elseif ($vName == 'packagefile' && $layout == 'edit' |
|
68 | && !$this->checkEditId('com_localise.edit.packagefile', $id)) |
|
69 | { |
|
70 | // Somehow the person just went to the form - we don't allow that. |
|
71 | $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id)); |
|
72 | $this->setMessage($this->getError(), 'error'); |
|
73 | $this->setRedirect(JRoute::_('index.php?option=com_localise&view=packages', false)); |
|
74 | ||
75 | return false; |
|
76 | } |
|
77 | elseif ($vName == 'package' && $layout == 'edit' |
|
78 | && !$this->checkEditId('com_localise.edit.package', $id)) |
|
79 | { |
|
@@ 77-86 (lines=10) @@ | ||
74 | ||
75 | return false; |
|
76 | } |
|
77 | elseif ($vName == 'package' && $layout == 'edit' |
|
78 | && !$this->checkEditId('com_localise.edit.package', $id)) |
|
79 | { |
|
80 | // Somehow the person just went to the form - we don't allow that. |
|
81 | $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id)); |
|
82 | $this->setMessage($this->getError(), 'error'); |
|
83 | $this->setRedirect(JRoute::_('index.php?option=com_localise&view=packages', false)); |
|
84 | ||
85 | return false; |
|
86 | } |
|
87 | else |
|
88 | { |
|
89 | $this->input->set('view', $vName); |