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
This commit is contained in:
mistic100
2012-05-19 13:34:51 +00:00
parent bb408cee7b
commit ee2f6c414d
+10
View File
@@ -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]