Release for 3.2.0. Changes since 3.2.0beta1:
[BackupPC.git] / lib / BackupPC / CGI / ReloadServer.pm
index 13b66b2..7fe69bf 100644 (file)
@@ -10,7 +10,7 @@
 #   Craig Barratt  <cbarratt@users.sourceforge.net>
 #
 # COPYRIGHT
-#   Copyright (C) 2003  Craig Barratt
+#   Copyright (C) 2003-2009  Craig Barratt
 #
 #   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
@@ -28,7 +28,7 @@
 #
 #========================================================================
 #
-# Version 2.1.0_CVS, released 3 Jul 2003.
+# Version 3.2.0, released 31 Jul 2010.
 #
 # See http://backuppc.sourceforge.net.
 #
@@ -41,10 +41,9 @@ use BackupPC::CGI::Lib qw(:all);
 
 sub action
 {
-    if ( defined($bpc) ) {
-        $bpc->ServerMesg("log User $User requested server configuration reload");
-        $bpc->ServerMesg("server reload");
-    }
+    ServerConnect();
+    $bpc->ServerMesg("log User $User requested server configuration reload");
+    $bpc->ServerMesg("server reload");
     print $Cgi->redirect($MyURL);
 }