Factored out the 'what links here' code into cocanwiki_links library.
[cocanwiki.git] / scripts / cocanwiki.ml
index 5664582..8cca6fb 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI - a wiki written in Objective CAML.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: cocanwiki.ml,v 1.15 2004/10/07 16:54:24 rich Exp $
+ * $Id: cocanwiki.ml,v 1.16 2004/10/10 14:44: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
@@ -222,3 +222,6 @@ let linkname_of_sectionname str =
 (* List of extensions currently registered. *)
 type extension_t = Dbi.connection -> int -> string -> string
 let extensions = ref ([] : (string * extension_t) list)
+
+(* Maximum degree of redirection. *)
+let max_redirect = 4