Added {{shell}} for running external shell commands.
[cocanwiki.git] / scripts / rename_page.ml
index d27e951..89accff 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: rename_page.ml,v 1.9 2006/08/14 11:36:50 rich Exp $
+ * $Id: rename_page.ml,v 1.10 2006/12/06 09:46:57 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
@@ -42,7 +42,7 @@ let run r (q : cgi) dbh hostid {hostname = hostname} user =
   (* New title mustn't be empty string. *)
   if new_title = "" then (
     error ~back_button:true ~title:"Empty title not allowed"
-      dbh hostid q "The new title cannot be empty.";
+      dbh hostid q "The new title cannot be empty.";
     return ()
   );
 
@@ -60,7 +60,7 @@ let run r (q : cgi) dbh hostid {hostname = hostname} user =
        | Wikilib.GenURL_OK url | Wikilib.GenURL_Duplicate url -> url
        | Wikilib.GenURL_TooShort | Wikilib.GenURL_BadURL ->
            error ~title:"Bad title" ~back_button:true
-             dbh hostid q
+             dbh hostid q
              ("The new title for the page isn't valid.  " ^
               "It may be too short or it may not contain " ^
               "enough alphabet letters.");
@@ -91,7 +91,7 @@ let run r (q : cgi) dbh hostid {hostname = hostname} user =
     with
        SaveURLError ->
          error ~title:"Page exists"
-           dbh hostid q
+           dbh hostid q
            ("Another page with the same title exists.  " ^
             "If you tried to rename a page, then rename it back to the " ^
             "original title, then you may see this error.  This is a bug " ^
@@ -113,7 +113,7 @@ let run r (q : cgi) dbh hostid {hostname = hostname} user =
 
   let buttons = [ ok_button ("/" ^ new_page) ] in
   ok ~title:"Page renamed" ~buttons
-    dbh hostid q "That page was renamed."
+    dbh hostid q "That page was renamed."
 
 let () =
   register_script ~restrict:[CanEdit] run