r13383: pulling in swat-welcome patch from SuSE packaging
authorGerald Carter <jerry@samba.org>
Wed, 8 Feb 2006 04:05:34 +0000 (04:05 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:09:57 +0000 (11:09 -0500)
(This used to be commit 1b955bbf59e5b11014405d888d58fefbc055ad38)

source3/web/swat.c

index af01d1f31bbc50a4957e1da098b5624e5bea5e46..cbf5ba8989199e1af9c75385d33d5e60d798dba3 100644 (file)
@@ -580,7 +580,11 @@ static void ViewModeBoxes(int mode)
 ****************************************************************************/
 static void welcome_page(void)
 {
-       include_html("help/welcome.html");
+       if (file_exist("help/welcome.html", NULL)) {
+               include_html("help/welcome.html");
+       } else {
+               include_html("help/welcome-no-samba-doc.html");
+       }
 }
 
 /****************************************************************************