aboutsummaryrefslogtreecommitdiffstats
path: root/install/db/121-database.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-05-19 13:34:51 +0000
committermistic100 <mistic@piwigo.org>2012-05-19 13:34:51 +0000
commitee2f6c414d9ade69cb07cba3c054977c0d237b15 (patch)
tree345c963c96f81da9df7ccdac0ed04540c0cab0a9 /install/db/121-database.php
parentbb408cee7b1daf15021c85a1bcff84c96a4e6bba (diff)
prefix_thumbnail and dir_thumbnail are planned for removal, must redefine a default value for htaccess
git-svn-id: http://piwigo.org/svn/trunk@15128 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'install/db/121-database.php')
-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]