diff options
Diffstat (limited to '')
-rw-r--r-- | frontend/payments/classes/class.UserNarocilaCebelica.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/payments/classes/class.UserNarocilaCebelica.php b/frontend/payments/classes/class.UserNarocilaCebelica.php index f7c823b..0cd8e84 100644 --- a/frontend/payments/classes/class.UserNarocilaCebelica.php +++ b/frontend/payments/classes/class.UserNarocilaCebelica.php @@ -29,10 +29,9 @@ class UserNarocilaCebelica{ public function __construct($narocilo_id=0){
- global $cebelica_api;
// Api koda za komunikacijo s cebelico
- define("API_KODA", $cebelica_api);
+ define("API_KODA", AppSettings::getInstance()->getSetting('cebelica_api'));
if($narocilo_id > 0){
@@ -211,6 +210,7 @@ class UserNarocilaCebelica{ return $cebelica_id_new;
}
else{
+ throw new Exception("Napaka pri vnosu dokumenta v cebelca.biz.");
return "Napaka pri vnosu dokumenta v cebelca.biz.";
}
}
|