From ee2f6c414d9ade69cb07cba3c054977c0d237b15 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 19 May 2012 13:34:51 +0000 Subject: 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 --- install/db/121-database.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'install/db') 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] -- cgit v1.2.3