mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-04 00:42:20 +02:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user