}\r
\r
$daoTheme = new wsDAOTheme($core->con);\r
- $theme = $daoTheme->getThemeOfBook($book_id, false);\r
+ $theme = $daoTheme->selectById($book->theme, 'themes');\r
\r
$webcompile = WEBROOT . '/fluidbook/compile/';\r
\r
return $theme;\r
}\r
\r
- public function selectById($theme_id)\r
+ public function selectById($theme_id,$table='themes_vue')\r
{\r
- $r = $this->con->select('SELECT * FROM themes_vue WHERE theme_id=\'' . $this->con->escape($theme_id) . '\' LIMIT 1');\r
+ $r = $this->con->select('SELECT * FROM '.$table.' WHERE theme_id=\'' . $this->con->escape($theme_id) . '\' LIMIT 1');\r
return $this->singleton($r);\r
}\r
\r