Revision 1754
Added by Dietmar about 12 years ago
add.php | ||
---|---|---|
4 | 4 |
* @category modules |
5 | 5 |
* @package wysiwyg |
6 | 6 |
* @author WebsiteBaker Project |
7 |
* @copyright 2009-2011, Website Baker Org. e.V.
|
|
7 |
* @copyright 2009-2012, WebsiteBaker Org. e.V.
|
|
8 | 8 |
* @link http://www.websitebaker2.org/ |
9 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
10 | 10 |
* @platform WebsiteBaker 2.8.x |
... | ... | |
22 | 22 |
die('<head><title>Access denied</title></head><body><h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2></body></html>'); |
23 | 23 |
} |
24 | 24 |
/* -------------------------------------------------------- */ |
25 |
|
|
25 | 26 |
// Insert an extra row into the database |
26 | 27 |
$database->query("INSERT INTO ".TABLE_PREFIX."mod_wysiwyg (page_id,section_id) VALUES ('$page_id','$section_id')"); |
27 |
|
Also available in: Unified diff
search for ->page['root_parent'] == 0 in module and shoe_menu2 calls
page['root_parent'] has always the page_id from the first adding new page in level