/
Change module-dependency to unit-dependency [5.3.0-B1]
Change module-dependency to unit-dependency [5.3.0-B1]
Right now In-Portal code has checks for "In-Commerce" module inside it. Instead we should rather check for unit presence (via kApplication::prefixRegistered
method) instead of module, that right now has this unit.
In long term this would also save us time when we'll be splitting In-Portal into smaller modules.
Before
application.php
if ( $currency_iso === false ) { if ( $this->isModuleEnabled('In-Commerce') ) {
After
application.php
if ( $currency_iso === false ) { if ( $this->prefixRegistred('curr') ) {