-# $Id: Makefile.config,v 1.13 2004/10/24 19:26:12 rich Exp $
+# $Id: Makefile.config,v 1.14 2004/10/25 07:44:55 rich Exp $
PACKAGE := cocanwiki
-VERSION := 1.3.3
+VERSION := 1.3.4
# Normally ignored. However, if you are installing centrally (using
# 'make pkg-install'), then the components are installed in the
(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: edit.ml,v 1.21 2004/10/21 19:54:29 rich Exp $
+ * $Id: edit.ml,v 1.22 2004/10/25 07:44:55 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 cancel id =
let url =
if id <> 0 then (
- let sth = dbh#prepare_cached "select url from pages
+ let sth = dbh#prepare_cached "select coalesce (url, url_deleted)
+ from pages
where hostid = ? and id = ?" in
sth#execute [`Int hostid; `Int id];
sth#fetch1string ()