View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004775 | OXID eShop (all versions) | 4.06. Language and translations | public | 2012-12-05 17:04 | 2012-12-06 16:18 |
Reporter | aggrosoft | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | won't fix | ||
Product Version | 4.6.2 revision 46646 | ||||
Summary | 0004775: smarty_function_oxmultilang can not be forced to admin/non-admin mode | ||||
Description | If 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 Reproduce | In 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 ); | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||