Browse Source

* Fixed missing initialization of webhandler

git-svn-id: trunk@17533 -
michael 14 years ago
parent
commit
6c6cf834b8
1 changed files with 6 additions and 0 deletions
  1. 6 0
      packages/fcl-web/src/base/fpapache.pp

+ 6 - 0
packages/fcl-web/src/base/fpapache.pp

@@ -125,6 +125,7 @@ Type
     procedure SetPriority(const AValue: THandlerPriority);
   public
     function InitializeWebHandler: TWebHandler; override;
+    Procedure Initialize;
     procedure ShowException(E: Exception); override;
     Function ProcessRequest(P : PRequest_Rec) : Integer; virtual;
     Function AllowRequest(P : PRequest_Rec) : Boolean; virtual;
@@ -718,6 +719,11 @@ begin
   Result:=TApacheHandler.Create(self);
 end;
 
+procedure TCustomApacheApplication.Initialize;
+begin
+  TApacheHandler(WebHandler).Initialize;
+end;
+
 procedure TCustomApacheApplication.ShowException(E: Exception);
 begin
   ap_log_error(pchar(TApacheHandler(WebHandler).ModuleName),0,APLOG_ERR,0,Nil,'module: %s',[Pchar(E.Message)]);