Revision 1071
Added by Matthias over 16 years ago
| trunk/CHANGELOG | ||
|---|---|---|
| 12 | 12 |
|
| 13 | 13 |
------------------------------------- 2.8.0 ------------------------------------- |
| 14 | 14 |
15-July 2009 Matthias Gallas |
| 15 |
! changed in modules/admin.php and admin/pages/add.php mktime() to time() |
|
| 15 | 16 |
! changed in wrapper modul modify.html to modify.htt |
| 16 | 17 |
# Fixed some validiation bugs in core and different modules (Thanks to luisehahne) |
| 17 | 18 |
# fixed display issue of jscalendar in news modul (Thanks to Aldus) |
| trunk/wb/admin/pages/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','".time()."','".$admin->get_user_id()."')";
|
|
| 133 | 133 |
$database->query($query); |
| 134 | 134 |
if($database->is_error()) {
|
| 135 | 135 |
$admin->print_error($database->get_error()); |
| trunk/wb/modules/admin.php | ||
|---|---|---|
| 163 | 163 |
|
| 164 | 164 |
// Work-out if the developer wants us to update the timestamp for when the page was last modified |
| 165 | 165 |
if(isset($update_when_modified) AND $update_when_modified == true) {
|
| 166 |
$database->query("UPDATE ".TABLE_PREFIX."pages SET modified_when = '".mktime()."', modified_by = '".$admin->get_user_id()."' WHERE page_id = '$page_id'");
|
|
| 166 |
$database->query("UPDATE ".TABLE_PREFIX."pages SET modified_when = '".time()."', modified_by = '".$admin->get_user_id()."' WHERE page_id = '$page_id'");
|
|
| 167 | 167 |
} |
| 168 | 168 |
|
| 169 | 169 |
?> |
Also available in: Unified diff
changed in modules/admin.php and admin/pages/add.php mktime() to time()