1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 03:54:10 +01:00

[ticket/11044] Added comment explaining filename splitting

PHPBB3-11044
This commit is contained in:
Fyorl 2012-08-06 08:32:12 +08:00
parent 011b494bc5
commit ecb310c6f7

View File

@ -142,7 +142,10 @@ class compress
$ext = '';
$this->filelist[$name]++;
if (($pos = strrpos($name, '.')) !== false) {
// Separate the extension off the end of the filename to preserve it
$pos = strrpos($name, '.');
if ($pos !== false)
{
$start = substr($name, 0, $pos);
$ext = substr($name, $pos);
}