From: vincent@cubedesigners.com Date: Thu, 10 Feb 2011 19:44:23 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f67af083d3e1f47df37794b2f51b2d330799025d;p=cubeextranet.git --- diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index 3b6a449ae..d154188f4 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -427,7 +427,7 @@ html{height:100%}' . "\n"; } $daoTheme = new wsDAOTheme($core->con); - $theme = $daoTheme->getThemeOfBook($book_id, false); + $theme = $daoTheme->selectById($book->theme, 'themes'); $webcompile = WEBROOT . '/fluidbook/compile/'; diff --git a/inc/ws/DAO/class.ws.dao.theme.php b/inc/ws/DAO/class.ws.dao.theme.php index b5e228f0b..23c1daa51 100644 --- a/inc/ws/DAO/class.ws.dao.theme.php +++ b/inc/ws/DAO/class.ws.dao.theme.php @@ -24,9 +24,9 @@ class wsDAOTheme extends commonDAO { return $theme; } - public function selectById($theme_id) + public function selectById($theme_id,$table='themes_vue') { - $r = $this->con->select('SELECT * FROM themes_vue WHERE theme_id=\'' . $this->con->escape($theme_id) . '\' LIMIT 1'); + $r = $this->con->select('SELECT * FROM '.$table.' WHERE theme_id=\'' . $this->con->escape($theme_id) . '\' LIMIT 1'); return $this->singleton($r); }