plug-ins are now dynamically loaded
This commit is contained in:
parent
f83b2c6086
commit
8266dfd69a
11 changed files with 47 additions and 36 deletions
|
|
@ -94,6 +94,9 @@ sub _processFunctions {
|
|||
} else {
|
||||
if (WebGUI::Privilege::canViewPage()) {
|
||||
$cmd = "WebGUI::Wobject::".${$wobject}{namespace};
|
||||
my $load = "use ".$cmd; # gotta load the wobject before you can use it
|
||||
eval($load);
|
||||
WebGUI::ErrorHandler::warn("Wobject failed to compile: $cmd.".$@) if($@);
|
||||
$w = eval{$cmd->new($wobject)};
|
||||
WebGUI::ErrorHandler::fatalError("Couldn't instanciate wobject: ${$wobject}{namespace}. Root Cause: ".$@) if($@);
|
||||
if ($session{form}{func} =~ /^[A-Za-z]+$/) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue