Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.
Порівняння попередніх версій Попередня ревізія Наступна ревізія | Попередня ревізія Наступна ревізія По сторонах наступні версії | ||
discounts [2022/12/30 18:17] nightfly |
discounts [2023/01/04 14:39] nightfly |
||
---|---|---|---|
Рядок 22: | Рядок 22: | ||
; будуть розглядатись оплати за " | ; будуть розглядатись оплати за " | ||
; | ; | ||
+ | ; | ||
+ | DISCOUNT_DAILY=0 | ||
</ | </ | ||
Рядок 79: | Рядок 81: | ||
====== Міграція з старих знижок ====== | ====== Міграція з старих знижок ====== | ||
- | У випадку, | + | У випадку, |
<code php> | <code php> | ||
- | |||
if ($ubillingConfig-> | if ($ubillingConfig-> | ||
$discountCfId = $ubillingConfig-> | $discountCfId = $ubillingConfig-> | ||
Рядок 96: | Рядок 97: | ||
if (!isset($allDiscounts[$eachLogin])) { | if (!isset($allDiscounts[$eachLogin])) { | ||
$newDiscount = ubRouting:: | $newDiscount = ubRouting:: | ||
- | $discountsDb-> | + | $loginF = ubRouting:: |
+ | $loginF = trim($loginF); | ||
+ | $discountsDb-> | ||
$discountsDb-> | $discountsDb-> | ||
$discountsDb-> | $discountsDb-> | ||
- | show_success(__(' | + | show_success(__(' |
} else { | } else { | ||
show_warning(__(' | show_warning(__(' | ||
} | } | ||
} else { | } else { | ||
- | show_error(__(' | + | show_error(__(' |
} | } | ||
} | } | ||
+ | $cache = new UbillingCache(); | ||
+ | $cache-> | ||
} else { | } else { | ||
show_error(__(' | show_error(__(' | ||
Рядок 117: | Рядок 122: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | Всі ваші старі знижки, |