Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 1000)
+++ trunk/CHANGELOG	(revision 1001)
@@ -11,12 +11,14 @@
 ! = Update/Change
 
 ------------------------------------- 2.8.0 -------------------------------------
+21-June-2009 Matthias Gallas
+#	Fixed small bug introduced in changeset [999]
 19-June-2009 Matthias Gallas
 #	Fixed bug that parent pages didn't inherit language settings to kind pages
 17-June-2009 Ruud Eisinga
 #	Bugfix in "droplets/upgrade.php" - wrong parameter order for adding fields.
 	also the query for "normal" upgrades had a typo.
-! 	Added warning in output_filter that the function will be removed in 2.9
+!	Added warning in output_filter that the function will be removed in 2.9
 17-June-2009 Dietrich Roland Pehlke
 #	Bugfix in "droplets/upgrade.php" - wrong tablename change to the correct one
 +	Add upgrade-script to droplets
Index: trunk/wb/admin/pages/add.php
===================================================================
--- trunk/wb/admin/pages/add.php	(revision 1000)
+++ trunk/wb/admin/pages/add.php	(revision 1001)
@@ -129,7 +129,7 @@
 }
 
 // Insert page into pages table
-$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','".DEFAULT_LANGUAGE."','$admin_groups','$viewing_groups','".mktime()."','".$admin->get_user_id()."')";
+$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()."')";
 $database->query($query);
 if($database->is_error()) {
 	$admin->print_error($database->get_error());
