lots of litlte bug fixes and tweaks
This commit is contained in:
parent
499981d092
commit
1c6fddb206
9 changed files with 25 additions and 0 deletions
|
|
@ -17,11 +17,19 @@ addPrototypes();
|
|||
rearrangeImportNode();
|
||||
addNewStyles();
|
||||
addRobots();
|
||||
#deleteOldContent();
|
||||
#addNewContent();
|
||||
$versionTag->commit;
|
||||
purgeOldRevisions();
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
#-------------------------------------------------
|
||||
sub deleteOldContent {
|
||||
print "\tDeleting old content\n";
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
sub addRobots {
|
||||
print "\tAdding robots.txt file.\n";
|
||||
|
|
@ -70,6 +78,7 @@ sub addNewStyles {
|
|||
next if $file eq "..";
|
||||
next if $file eq ".";
|
||||
$assetCounter++;
|
||||
print "\t\t\tAdding $file\n";
|
||||
if ($file =~ m/\.[png|jpg|gif]+$/) {
|
||||
my $asset = $folder->addChild({
|
||||
className=>"WebGUI::Asset::File::Image",
|
||||
|
|
|
|||
|
|
@ -826,6 +826,7 @@ sub addSearchEngine {
|
|||
}
|
||||
$deleteWobject->finish;
|
||||
$deleteAssetData->finish;
|
||||
$session->config->deleteFromArray("assets","WebGUI::Asset::Wobject::IndexedSearch");
|
||||
$session->db->write("drop table if exists IndexedSearch");
|
||||
$session->db->write("drop table if exists IndexedSearch_default");
|
||||
$session->db->write("drop table if exists IndexedSearch_default_data");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue