Revision 1002
Added by Matthias over 15 years ago
add.php | ||
---|---|---|
129 | 129 |
} |
130 | 130 |
|
131 | 131 |
// Insert page into pages table |
132 |
$query = "INSERT INTO ".TABLE_PREFIX."pages (page_title,menu_title,parent,template,target,position,visibility,searching,menu,language,admin_groups,viewing_groups,modified_when,modified_by) VALUES ('$title','$title','$parent','$template','_top','$position','$visibility','1','1','".$language."','$admin_groups','$viewing_groups','".mktime()."','".$admin->get_user_id()."')";
|
|
132 |
$query = "INSERT INTO ".TABLE_PREFIX."pages (page_title,menu_title,parent,template,target,position,visibility,searching,menu,language,admin_groups,viewing_groups,modified_when,modified_by) VALUES ('$title','$title','$parent','$template','_top','$position','$visibility','1','1','$language','$admin_groups','$viewing_groups','".mktime()."','".$admin->get_user_id()."')";
|
|
133 | 133 |
$database->query($query); |
134 | 134 |
if($database->is_error()) { |
135 | 135 |
$admin->print_error($database->get_error()); |
Also available in: Unified diff
and another typo was to fix