From b49344ea7a6283654df2cd6072432d28aaee7685 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 13 Dec 2010 15:27:12 +0000 Subject: [PATCH] --- inc/ws/DAO/class.ws.dao.theme.php | 2 +- inc/ws/Metier/class.ws.icone.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/ws/DAO/class.ws.dao.theme.php b/inc/ws/DAO/class.ws.dao.theme.php index f45c51b65..a853e2e5a 100644 --- a/inc/ws/DAO/class.ws.dao.theme.php +++ b/inc/ws/DAO/class.ws.dao.theme.php @@ -35,7 +35,7 @@ class wsDAOTheme extends extranetDAO { if ($basic) { $table = 'themes'; } else { - $table = 'theme_vue'; + $table = 'themes_vue'; } $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'); return $this->singleton($r); diff --git a/inc/ws/Metier/class.ws.icone.php b/inc/ws/Metier/class.ws.icone.php index 36d95606c..9eb184bfd 100644 --- a/inc/ws/Metier/class.ws.icone.php +++ b/inc/ws/Metier/class.ws.icone.php @@ -8,8 +8,8 @@ class wsIcone extends cubeMetier { public function makeImage() { - $root = ROOT . '/icones/' . $this->icone_id . '/'; - $final = ROOT . '/icones/' . $this->icone_id . '.png'; + $root = WS_ICONS . '/' . $this->icone_id . '/'; + $final = WS_ICONS . '/' . $this->icone_id . '.png'; if (file_exists($final) && $this->date <= filemtime($final)) { return; -- 2.39.5