various bug fixes
This commit is contained in:
parent
439d3fa4b3
commit
dc4fb07c1b
4 changed files with 29 additions and 8 deletions
|
|
@ -16,11 +16,31 @@ $versionTag->set({name=>"Stuff just for 7.0 installs"});
|
|||
addPrototypes();
|
||||
rearrangeImportNode();
|
||||
addNewStyles();
|
||||
addRobots();
|
||||
$versionTag->commit;
|
||||
purgeOldRevisions();
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
#-------------------------------------------------
|
||||
sub addRobots {
|
||||
print "\tAdding robots.txt file.\n";
|
||||
my $importNode = WebGUI::Asset->getImportNode($session);
|
||||
$importNode->addChild({
|
||||
title=>"robots.txt",
|
||||
menuTitle=>"robots.txt",
|
||||
url=>"robots.txt",
|
||||
groupIdView=>'7',
|
||||
groupIdEdit=>'12',
|
||||
className=>'WebGUI::Asset::Snippet',
|
||||
assetId=>"new",
|
||||
snippet=>'User-agent: googlebot
|
||||
Disallow: *?op=displayLogin
|
||||
Disallow: *?op=makePrintable
|
||||
'
|
||||
},"pbrobot000000000000001");
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
sub addNewStyles {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue