MetaTemplate::getThemeDir PHP Method

getThemeDir() protected method

we need this theme info for securing the smarty caching
protected getThemeDir ( )
    protected function getThemeDir()
    {
        $path = $this->getValue();
        if (empty($path)) {
            return '';
        }
        $dir_arr = explode(DIR_SEP, $path);
        if (2 < count($dir_arr)) {
            return $dir_arr[0] . DIR_SEP . $dir_arr[1];
        }
        return $path;
    }