public function setThemePath($generalConfig)
{
$themeDir = isset($generalConfig['theme']) ? '/' . $generalConfig['theme'] : '';
$themePath = isset($generalConfig['theme_path']) ? $generalConfig['theme_path'] : '/theme';
$themeUrl = isset($generalConfig['theme_path']) ? $generalConfig['theme_path'] : '/theme';
// See if the user has set a theme path otherwise use the default
if (!isset($generalConfig['theme_path'])) {
$this->setPath('themepath', $this->getPath('themebase') . $themeDir);
$this->setUrl('theme', $themeUrl . $themeDir . '/');
} else {
$this->setPath('themepath', $this->getPath('rootpath') . $themePath . $themeDir);
$this->setUrl('theme', $themeUrl . $themeDir . '/');
}
}