Fix utterly bogus default block spec (from gallery days!)

This commit is contained in:
Chris 2017-01-08 17:33:35 +00:00
parent ede2bfd2d7
commit 2c7cc59a60

View File

@ -85,8 +85,8 @@ sub get_block {
# Split along slashes
my @args = split(/\//, $pathinfo);
# Defaults the block to the gallery, and clear the pathinfo and pathinfo for safety
my $block = $settings -> {"config"} -> {"gallery_block"};
# Defaults the block, and clear the pathinfo and pathinfo for safety
my $block = $settings -> {"config"} -> {"default_block"};
$cgi -> delete('pathinfo', 'api');
# If a single item remains in the argument, it is a block name