From ca0d3d364bbfbd5fcb65c1153a21469b077ba80e Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 22 Feb 2006 22:58:39 +0000 Subject: Bug 316127: Implement an infrastructure to link to the documentation - Patch by Marc Schumann r=vladd a=justdave --- Bugzilla/Config/Common.pm | 9 +++++++++ Bugzilla/Config/Core.pm | 7 +++++++ 2 files changed, 16 insertions(+) (limited to 'Bugzilla/Config') diff --git a/Bugzilla/Config/Common.pm b/Bugzilla/Config/Common.pm index c87e2f713..4ca48b839 100644 --- a/Bugzilla/Config/Common.pm +++ b/Bugzilla/Config/Common.pm @@ -195,6 +195,15 @@ sub check_urlbase { return ""; } +sub check_url { + my ($url) = (@_); + return '' if $url eq ''; # Allow empty URLs + if ($url !~ m:/$:) { + return 'must be a legal URL, absolute or relative, ending with a slash.'; + } + return ''; +} + sub check_webdotbase { my ($value) = (@_); $value = trim($value); diff --git a/Bugzilla/Config/Core.pm b/Bugzilla/Config/Core.pm index e2ff8746d..21b974852 100644 --- a/Bugzilla/Config/Core.pm +++ b/Bugzilla/Config/Core.pm @@ -53,6 +53,13 @@ sub get_param_list { checker => \&check_urlbase }, + { + name => 'docs_urlbase', + type => 't', + default => 'docs/html/', + checker => \&check_url + }, + { name => 'sslbase', type => 't', -- cgit v1.2.3-24-g4f1b