Avoid having "gallery" as shortened URL

This commit is contained in:
Luc Didry
2016-06-06 22:09:39 +02:00
parent 58901989dd
commit 0a318dc4d4
+1 -1
View File
@@ -106,7 +106,7 @@ sub startup {
my $short;
do {
$short= $c->shortener($c->config->{length});
} while (LutimModel::Lutim->count('WHERE short = ?', $short) || $short eq 'about' || $short eq 'stats' || $short eq 'd' || $short eq 'm');
} while (LutimModel::Lutim->count('WHERE short = ?', $short) || $short eq 'about' || $short eq 'stats' || $short eq 'd' || $short eq 'm' || $short eq 'gallery');
LutimModel::Lutim->create(
short => $short,