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:
parent
011b494bc5
commit
ecb310c6f7
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user