]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 10 Feb 2011 19:44:23 +0000 (19:44 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 10 Feb 2011 19:44:23 +0000 (19:44 +0000)
inc/ws/Controlleur/class.ws.url.php
inc/ws/DAO/class.ws.dao.theme.php

index 3b6a449aea086465a53662f5ad9a4af0f056f86e..d154188f439b379ca1c2a0f76b554e567a4f80f1 100644 (file)
@@ -427,7 +427,7 @@ html{height:100%}' . "\n";
                }\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
index b5e228f0bfa914fa2e4c4b659f513134995ac33f..23c1daa517b7d171bfd534aa4bc2dbc33a9c6a84 100644 (file)
@@ -24,9 +24,9 @@ class wsDAOTheme extends commonDAO {
                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