X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Flib%2Fcocanwiki_ok.ml;h=4a1ca08bac782cde262d9c449008339820e36f2d;hb=295f2cde3f43ccf7f775d39b95925e10aa4c37cb;hp=70ac52f19316f2158a384767c6e2fa1ef812f052;hpb=fed8bae623ae58ec83206e53be5eb7ed119ce875;p=cocanwiki.git diff --git a/scripts/lib/cocanwiki_ok.ml b/scripts/lib/cocanwiki_ok.ml index 70ac52f..4a1ca08 100644 --- a/scripts/lib/cocanwiki_ok.ml +++ b/scripts/lib/cocanwiki_ok.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: cocanwiki_ok.ml,v 1.1 2004/10/21 11:42:05 rich Exp $ + * $Id: cocanwiki_ok.ml,v 1.2 2005/03/31 14:24:05 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 @@ -26,7 +26,7 @@ open Printf open Cocanwiki_template -(* Override StdPages.ok and StdPages.error with out our versions. +(* Override Template.StdPages.ok and Template.StdPages.error with our versions. * Also have some standard buttons around. *) let ok_error_template = _get_template "ok_error.html" @@ -35,15 +35,15 @@ let error ?cookie ?cookies ?title ?(icon = "/_graphics/error.png") ?icon_alt ?back_button ?close_button q message = (* Set the status so scripts can determine if the request failed. *) Request.set_status q#request cHTTP_BAD_REQUEST; - StdPages.error ?cookie ?cookies ~template:ok_error_template + Template.StdPages.error ?cookie ?cookies ~template:ok_error_template ?title ~icon ?icon_alt ?back_button ?close_button q message let ok ?cookie ?cookies ?title ?(icon = "/_graphics/ok.png") ?icon_alt ?back_button ?close_button ?buttons q message = - StdPages.ok ?cookie ?cookies ~template:ok_error_template + Template.StdPages.ok ?cookie ?cookies ~template:ok_error_template ?title ~icon ?icon_alt ?back_button ?close_button ?buttons q message -let ok_button url = { StdPages.label = " OK "; - StdPages.link = url; - StdPages.method_ = None; - StdPages.params = [] } +let ok_button url = { Template.StdPages.label = " OK "; + Template.StdPages.link = url; + Template.StdPages.method_ = None; + Template.StdPages.params = [] }