| @@ 81-89 (lines=9) @@ | ||
| 78 | } |
|
| 79 | } |
|
| 80 | ||
| 81 | if ($task) { |
|
| 82 | $this->Flash->success(__d('system', 'Plugins successfully installed!')); |
|
| 83 | $this->redirect($this->referer()); |
|
| 84 | } elseif (!$task && !$uploadError) { |
|
| 85 | $this->Flash->set(__d('system', 'Plugins could not be installed'), [ |
|
| 86 | 'element' => 'System.installer_errors', |
|
| 87 | 'params' => ['errors' => WebShellDispatcher::output()], |
|
| 88 | ]); |
|
| 89 | } |
|
| 90 | } |
|
| 91 | ||
| 92 | $this->title(__d('system', 'Install Plugin')); |
|
| @@ 104-112 (lines=9) @@ | ||
| 101 | } |
|
| 102 | } |
|
| 103 | ||
| 104 | if ($task) { |
|
| 105 | $this->Flash->success(__d('system', 'Theme successfully installed!')); |
|
| 106 | $this->redirect($this->referer()); |
|
| 107 | } elseif (!$task && !$uploadError) { |
|
| 108 | $this->Flash->set(__d('system', 'Theme could not be installed'), [ |
|
| 109 | 'element' => 'System.installer_errors', |
|
| 110 | 'params' => ['errors' => WebShellDispatcher::output()], |
|
| 111 | ]); |
|
| 112 | } |
|
| 113 | } |
|
| 114 | ||
| 115 | $this->title(__d('system', 'Install Theme')); |
|