X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=lib%2FBackupPC%2FCGI%2FReloadServer.pm;h=c2621d901fe10b0336eddce5936e8f573011f159;hp=13b66b259b4bfc6bdfda4ff84c8aa21f94f9e3d4;hb=f6fbcc3682d2bc9e7dfdc26e95bd5fcdb359496d;hpb=a7e968ce327855f2ba2624ca8517069a936c9b5b diff --git a/lib/BackupPC/CGI/ReloadServer.pm b/lib/BackupPC/CGI/ReloadServer.pm index 13b66b2..c2621d9 100644 --- a/lib/BackupPC/CGI/ReloadServer.pm +++ b/lib/BackupPC/CGI/ReloadServer.pm @@ -10,7 +10,7 @@ # Craig Barratt # # COPYRIGHT -# Copyright (C) 2003 Craig Barratt +# Copyright (C) 2003-2007 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.0beta0, released 5 April 2009. # # 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); }