controller/admin_currency_controller.php 1 location
|
@@ 305-308 (lines=4) @@
|
| 302 |
|
public function enable_currency($currency_id, $action) |
| 303 |
|
{ |
| 304 |
|
// Return an error if no currency |
| 305 |
|
if (!$currency_id) |
| 306 |
|
{ |
| 307 |
|
trigger_error($this->user->lang[$this->lang_key_prefix . '_NO_CURRENCY'] . adm_back_link($this->u_action), E_USER_WARNING); |
| 308 |
|
} |
| 309 |
|
|
| 310 |
|
// Return an error if it's the last enabled currency |
| 311 |
|
if ($this->ppde_operator->last_currency_enabled($action) && ($action == 'disable')) |
controller/admin_overview_controller.php 1 location
|
@@ 200-203 (lines=4) @@
|
| 197 |
|
*/ |
| 198 |
|
private function exec_action($action) |
| 199 |
|
{ |
| 200 |
|
if (!$this->auth->acl_get('a_ppde_manage')) |
| 201 |
|
{ |
| 202 |
|
trigger_error($this->user->lang['NO_AUTH_OPERATION'] . adm_back_link($this->u_action), E_USER_WARNING); |
| 203 |
|
} |
| 204 |
|
|
| 205 |
|
switch ($action) |
| 206 |
|
{ |