aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--install/db/121-database.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/install/db/121-database.php b/install/db/121-database.php
index a4dbe9b07..ee8cad5df 100644
--- a/install/db/121-database.php
+++ b/install/db/121-database.php
@@ -68,6 +68,16 @@ else
RewriteEngine on';
}
+ if (!isset($conf['prefix_thumbnail']))
+ {
+ $conf['prefix_thumbnail'] = 'TN-';
+ }
+
+ if (!isset($conf['dir_thumbnail']))
+ {
+ $conf['dir_thumbnail'] = 'thumbnail';
+ }
+
$content.= '
## redirect <2.4 thumbnails hotlinks to i.php
RewriteRule ^upload/(.*)/'.preg_quote($conf['dir_thumbnail']).'/'.preg_quote($conf['prefix_thumbnail']).'(.*)\.([a-z0-9]{3,4})$ i.php?/upload/$1/$2-th.$3 [L]