View Issue Details

IDProjectCategoryView StatusLast Update
0002585OXID eShop (all versions)1. ----- eShop frontend -----public2012-12-10 14:38
Reporteravenger Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
Product Version4.4.7 revision 33396 
Fixed in Version4.5.2 revision 38481 
Summary0002585: User theme not set as template directory
DescriptionAlways "basic" scheme ist used as template directory, ignoring a userdefined different basic scheme.

In "protected function _fillCommonSmartyProperties" in "oxutilsview.php" always the "basic" theme is assigned as Smarty template dir instead of the user's theme.

After the correct assignment of the template dirs with

        $sTplDir1 = $myConfig->getTemplateDir( $this->isAdmin() );
        $sTplDir2 = $myConfig->getOutDir() . $myConfig->getConfigParam('sTheme') . "/tpl/";
        $aTemplateDir = array($sTplDir1);
        if (!$this->isAdmin() && $sTplDir1 != $sTplDir2)
            $aTemplateDir[] = $sTplDir2;

the code contains 2 totally superfluous and wrong reassignments, which need to be deleted:

        $aTemplateDir = array($myConfig->getTemplateDir( $this->isAdmin() ));
        $aTemplateDir[] = "/htdocs/oxideshop/eshop/source/out/basic/tpl/";


        $aTemplateDir = array($myConfig->getTemplateDir( $this->isAdmin() ));
        $aTemplateDir[] = $myConfig->getOutDir()."basic/tpl/";
TagsNo tags attached.
Theme
BrowserAll
PHP Versionany
Database Versionany

Activities

birute_meilutyte

2011-04-29 15:06

reporter   ~0004422

@developers: check from source code side, if such issue still exist in version 4.5.0

Linas Kukulskis

2011-08-08 16:40

reporter   ~0004952

in latest version there are no this problem.