If fetching the RSS from the feed fails, keep using the old, cached
[cocanwiki.git] / scripts / create_macro.ml
index 96fed62..b6f65c4 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: create_macro.ml,v 1.1 2006/07/26 16:26:43 rich Exp $
+ * $Id: create_macro.ml,v 1.2 2006/12/06 09:46:56 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
@@ -36,13 +36,13 @@ let run r (q : cgi) dbh hostid _ _ =
 
   if name = "" then (
     error ~back_button:true ~title:"Name field missing"
-      dbh hostid q "You must name your macro.";
+      dbh hostid q "You must name your macro.";
     return ()
   );
 
   if not (Pcre.pmatch ~rex:name_re name) then (
     error ~back_button:true ~title:"Name field invalid"
-      dbh hostid q "Name field can only contain letters and numbers.";
+      dbh hostid q "Name field can only contain letters and numbers.";
     return ()
   );
 
@@ -56,7 +56,7 @@ let run r (q : cgi) dbh hostid _ _ =
   PGOCaml.commit dbh;
 
   let buttons = [ ok_button "/_bin/edit_macros.cmo" ] in
-  ok ~title:"Macro created" ~buttons dbh hostid q
+  ok ~title:"Macro created" ~buttons dbh hostid q
     "That macro was created."
 
 let () =