more session related changes

This commit is contained in:
JT Smith 2006-01-09 19:56:26 +00:00
parent 16b9675b0c
commit 024514c549
106 changed files with 1498 additions and 1313 deletions

View file

@ -2,6 +2,26 @@ package WebGUI::i18n::English::Asset_Redirect;
our $I18N = {
'what do you want to do with this redirect' => {
message => q|What do you want to do with this redirect?|,
lastUpdated => 0,
},
'go to the redirect url' => {
message => q|Go to the redirect URL.|,
lastUpdated => 0,
},
'edit the redirect properties' => {
message => q|Edit the redirect properties.|,
lastUpdated => 0,
},
'go to the redirect parent page' => {
message => q|Go to the redirect's parent.|,
lastUpdated => 0,
},
'redirect url' => {
message => q|Redirect URL|,
lastUpdated => 1104719740,

View file

@ -7,15 +7,15 @@ use WebGUI::Session;
use WebGUI::International;
##Get list of all macros by namespace/module name
my $dir = join '/', $session{config}{webguiRoot},"lib","WebGUI","Macro";
opendir (DIR,$dir) or WebGUI::ErrorHandler::fatal("Can't open Macro directory: $dir!");
my $dir = join '/', $self->session->config->getWebguiRoot,"lib","WebGUI","Macro";
opendir (DIR,$dir) or $self->session->errorHandler->fatal("Can't open Macro directory: $dir!");
my @macros = map { s/Macro_//; s/\.pm//; $_; }
grep { /\.pm$/ }
readdir(DIR); ##list of namespaces
closedir(DIR);
##Build list of enabled macros, by namespace by reversing session hash:
my %macros = reverse %{ $session{config}{macros} };
my %macros = reverse %{ $self->session->config->get("macros") };
$macro_table =
join "\n",