source/Application/Controller/ContentController.php
protected function _getTplName()
    {
        // assign template name
        $sTplName = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('tpl');

        if ($sTplName) {
            // security fix so that you cant access files from outside template dir
            $sTplName = basename($sTplName);

            //checking if it is template name, not content id
            if (!getStr()->preg_match("/\.tpl$/", $sTplName)) {
                $sTplName = null;
            } else {
                $sTplName = 'message/' . $sTplName;
            }
        }

        return $sTplName;
    }
protected function _getTplName()
    {
        // assign template name
        $sTplName = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('tpl');

        if ($sTplName) {
            // security fix so that you cant access files from outside template dir
            $sTplName = basename($sTplName);

            //checking if it is template name, not content id
            if (!getStr()->preg_match("/\.tpl$/", $sTplName)) {
                $sTplName = null;
            } else {
                $sTplName = 'message/' . $sTplName;
            }
        }

        return $sTplName;
    }
protected function _getTplName ( ) { // assign template name $ sTplName = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'tpl' ) ; if ( $ sTplName ) { // security fix so that you cant access files from outside template dir $ sTplName = basename ( $ sTplName ) ; //checking if it is template name, not content id if ( ! getStr ( ) -> preg_match ( "/\.tpl$/" , $ sTplName ) ) { $ sTplName = null ; } else { $ sTplName = 'message/' . $ sTplName ; } } return $ sTplName ; }
Returns name of template

@return string
Returns name of template