Bug #4105
closed
Suggest to place the below.
if ( $_CB_framework->getUi() == 1 ) {
cbimport( 'language.front' );
} else {
cbimport( 'language.all' );
}
At the bottom of the foundation file to ensure lang files are always loaded.
Backend ends up loading frontend with the proposal due to UI not being set yet. Maybe implement a global var or something that is set before including the foundation so UI can be set before language is included?
Fixed with the following.
@if ( $cmsUi !== null ) {
$_CB_framework->cbset( '_ui', $cmsUi );
}
if ( $cmsUi === 1 ) {
cbimport( 'language.front' );
cbimport( 'language.cbteamplugins' );
} else {
cbimport( 'language.front' );
cbimport( 'language.cbteamplugins' );
cbimport( 'language.admin' );
}
@
$cmsUi is set within each CMS switch case. Existing usages do not need to be changed as there is caching in cbimport to prevent duplicate loading.
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF