File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ use WebGUI::Config;
19
19
use WRE::Config;
20
20
use WRE::File;
21
21
use WRE::Mysql;
22
+ use Moose;
22
23
23
- extends ' Plack::Component' ;
24
+ use parent ' Plack::Component' ;
24
25
use Plack::Util::Accessor qw/ wre_config/ ;
25
26
26
27
# -------------------------------------------------------------------
@@ -31,7 +32,7 @@ sub call {
31
32
my $r = Plack::Request-> new($env );
32
33
my ($id ) = $r -> uri-> host =~ m / ^\/ (demo[0-9\_ ]+).*$ / ;
33
34
my $webgui_config = $config -> getWebguiRoot(" /etc/" .$id ." .conf" );
34
- $self -> response( $response ) ;
35
+ my $ response ;
35
36
if (-e $webgui_config ) {
36
37
# # Code to use the WebGUI App with a particular config file.
37
38
local $ENV {WEBGUI_CONFIG } = $webgui_config ;
@@ -46,6 +47,7 @@ sub call {
46
47
else {
47
48
$response = $self -> prompt_demo();
48
49
}
50
+ return $response -> finalize;
49
51
}
50
52
51
53
You can’t perform that action at this time.
0 commit comments