Change the showing of hidden pages by the SiteIndex to be configurable. Fixes RFE #11044.

Also, change the SiteIndex to use an iterator.
This commit is contained in:
Colin Kuskie 2010-01-27 11:32:27 -08:00
parent e59ccc5dd3
commit ca86f3d84b
5 changed files with 38 additions and 4 deletions

View file

@ -31,6 +31,7 @@ my $quiet; # this line required
my $session = start(); # this line required
# upgrade functions go here
addSiteIndexToConfig($session);
finish($session); # this line required
@ -44,6 +45,16 @@ finish($session); # this line required
# print "DONE!\n" unless $quiet;
#}
#----------------------------------------------------------------------------
# Describe what our function does
sub addSiteIndexToConfig {
my $session = shift;
print "\tAdd Site Config indexing section to config file... " unless $quiet;
$session->config->set('siteIndex', { showHiddenPages => 0 });
# and here's our code
print "DONE!\n" unless $quiet;
}
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------