  |
35 | 35 | | $Qspecific->bindTable(':table_templates_boxes_to_pages', TABLE_TEMPLATES_BOXES_TO_PAGES); |
| |
36 | 36 | | $Qspecific->bindTable(':table_templates_boxes', TABLE_TEMPLATES_BOXES); |
| |
37 | 37 | | $Qspecific->bindTable(':table_templates', TABLE_TEMPLATES); |
  |
38 | | - | $Qspecific->bindInt(':templates_id', 1); |
| |
| 38 | + | $Qspecific->bindInt(':templates_id', $osC_Template->getID()); |
|
39 | 39 | | $Qspecific->bindRaw(':content_page', '"*", "' . $osC_Template->getGroup() . '/*", "' . $osC_Template->getGroup() . '/' . substr($osC_Template->getPageContentsFilename(), 0, strrpos($osC_Template->getPageContentsFilename(), '.')) . '"'); |
| |
40 | 40 | | $Qspecific->bindValue(':modules_group', $this->_group); |
| |
41 | 41 | | $Qspecific->execute(); |
| |
|
|
 |
… |
|
51 | 51 | | $Qmodules->bindTable(':table_templates_boxes_to_pages', TABLE_TEMPLATES_BOXES_TO_PAGES); |
| |
52 | 52 | | $Qmodules->bindTable(':table_templates_boxes', TABLE_TEMPLATES_BOXES); |
| |
53 | 53 | | $Qmodules->bindTable(':table_templates', TABLE_TEMPLATES); |
  |
54 | | - | $Qmodules->bindInt(':templates_id', 1); |
| |
| 54 | + | $Qmodules->bindInt(':templates_id', $osC_Template->getID()); |
  |
55 | 55 | | $Qmodules->bindRaw(':content_page', '"*", "' . $osC_Template->getGroup() . '/*", "' . $osC_Template->getGroup() . '/' . substr($osC_Template->getPageContentsFilename(), 0, strrpos($osC_Template->getPageContentsFilename(), '.')) . '"'); |
| |
56 | 56 | | $Qmodules->bindValue(':modules_group', $this->_group); |
| |
57 | 57 | | $Qmodules->execute(); |