(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: rename_page.ml,v 1.7 2006/07/27 16:46:55 rich Exp $
+ * $Id: rename_page.ml,v 1.9 2006/08/14 11:36:50 rich Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*)
let old_model = load_page dbh hostid ~url:page () in
let new_model = new_page_with_title new_title in
- let new_model = { new_model with description = old_model.description;
+ let new_model = { new_model with
+ description = old_model.description;
+ keywords = old_model.keywords;
+ noodp = old_model.noodp;
contents_ = old_model.contents_ } in
let old_model = { old_model with redirect = Some new_page } in
ignore (save_page r dbh hostid ~user old_model);