View Issue Details

IDProjectCategoryView StatusLast Update
0004775OXID eShop (all versions)4.06. Language and translationspublic2012-12-06 16:18
Reporteraggrosoft Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionwon't fix 
Product Version4.6.2 revision 46646 
Summary0004775: smarty_function_oxmultilang can not be forced to admin/non-admin mode
DescriptionIf one wants to use frontend language in the backend or vice versa he has to set the admin mode. There is a function setAdminMode in oxSuperCfg that can be used for that. But this will not work for oxmultilang as this just uses the "isAdmin()" global function. Fix would be as easy as:

//Current
$blAdmin = isAdmin();

//Fixed
$blAdmin = oxConfig::getInstance()->isAdmin();
Steps To ReproduceIn Backend try to do something like:

$myConfig = oxConfig::getInstance();
$myConfig->setAdminMode( false );
echo oxLang::getInstance()->translate('SOME_FRONTEND_VAR'); //Will give a missing error
$myConfig->setAdminMode( true );
TagsNo tags attached.
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

arturas.sevcenko

2012-12-06 16:18

reporter   ~0008068

This is implemented and working as intended.
If someone wants to use frontend language constants in backend, then please copy them to admin language files or vice versa.