if ($basic) {\r
$table = 'themes';\r
} else {\r
- $table = 'theme_vue';\r
+ $table = 'themes_vue';\r
}\r
$r = $this->con->select('SELECT * FROM '.$table.' WHERE theme_id IN (SELECT theme FROM books WHERE book_id=\'' . $this->con->escape($book_id) . '\') LIMIT 1');\r
return $this->singleton($r);\r
\r
public function makeImage()\r
{\r
- $root = ROOT . '/icones/' . $this->icone_id . '/';\r
- $final = ROOT . '/icones/' . $this->icone_id . '.png';\r
+ $root = WS_ICONS . '/' . $this->icone_id . '/';\r
+ $final = WS_ICONS . '/' . $this->icone_id . '.png';\r
\r
if (file_exists($final) && $this->date <= filemtime($final)) {\r
return;\r