summaryrefslogtreecommitdiffstats
path: root/frontend/payments/classes/class.UserPlacila.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2024-05-27 13:08:29 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2024-05-27 13:08:29 +0200
commit75160b12821f7f4299cce7f0b69c83c1502ae071 (patch)
tree27e25e4ccaef45f0c58b22831164050d1af1d4db /frontend/payments/classes/class.UserPlacila.php
parentprvi-commit (diff)
download1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.gz
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.bz2
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.lz
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.xz
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.zst
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.zip
Diffstat (limited to '')
-rw-r--r--frontend/payments/classes/class.UserPlacila.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend/payments/classes/class.UserPlacila.php b/frontend/payments/classes/class.UserPlacila.php
index a21d6fb..53305fa 100644
--- a/frontend/payments/classes/class.UserPlacila.php
+++ b/frontend/payments/classes/class.UserPlacila.php
@@ -105,7 +105,7 @@ class UserPlacila{
// Izpisemo podatke o placilih
public function displayPlacila(){
- global $lang, $global_user_id, $app_settings;
+ global $lang, $global_user_id;
// Tabela vseh placil
$this->displayPlacilaTable();
@@ -116,13 +116,13 @@ class UserPlacila{
echo '</div>';*/
// Izracun zasluzka in provizij po mesecih - samo Goran
- if($app_settings['app_name'] == 'www.1ka.si' && $global_user_id == '112696')
+ if(AppSettings::getInstance()->getSetting('app_settings-app_name') == 'www.1ka.si' && $global_user_id == '112696')
$this->displayPlacilaPovzetek();
}
// Izpisemo seznam vseh placil
public function displayPlacilaTable(){
- global $lang, $global_user_id, $app_settings;
+ global $lang, $global_user_id;
// Admini vidijo vsa placila
$data = $this->getPlacila();
@@ -194,7 +194,7 @@ class UserPlacila{
// Edit / delete
echo '<td>';
// Na www.1ka.si lahko placilo ureja samo Goran
- if($app_settings['app_name'] != 'www.1ka.si' || $global_user_id == '112696'){
+ if(AppSettings::getInstance()->getSetting('app_settings-app_name') != 'www.1ka.si' || $global_user_id == '112696'){
// Uredi
echo '<a href="#" onClick="displayPlaciloPopup(\''.$data_row['id'].'\')" title="'.$lang['srv_placila_edit'].'"><i class="fa fa-pencil-alt link-sv-moder"></i></a> <span class="no-print"> | </span>';