removing a bunch of grap we no longer need
This commit is contained in:
parent
4f8489300f
commit
9e31680f41
28 changed files with 52 additions and 8280 deletions
|
|
@ -11,14 +11,20 @@ package WebGUI::Macro::RootTitle;
|
|||
#-------------------------------------------------------------------
|
||||
|
||||
use strict;
|
||||
use Tie::CPHash;
|
||||
use WebGUI::Page;
|
||||
use WebGUI::Asset;
|
||||
use WebGUI::Session;
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub process {
|
||||
my $root = WebGUI::Page->getWebGUIRoot;
|
||||
return $root->get("title");
|
||||
if (exists $session{asset}) {
|
||||
my $lineage = $session{asset}->get("lineage");
|
||||
$lineage = substr($lineage,0,6);
|
||||
my $root = WebGUI::Asset->newByLineage($lineage);
|
||||
if (defined $root) {
|
||||
return $root->get("title");
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue