84 $hashDirReg = $subdirReg =
'';
85 $hashLevels = $repo->getHashLevels();
86 for ( $i = 0; $i < $hashLevels; $i++ ) {
87 $subdirReg .=
'[0-9a-f]';
88 $hashDirReg .=
"$subdirReg/";
92 if ( preg_match(
"!^((archive/)?$hashDirReg([^/]*)/([^/]*))$!", $thumbRel, $m ) ) {
93 [ , $rel, $archOrTemp, $filename, $thumbname ] = $m;
95 } elseif ( preg_match(
"!^(temp/)($hashDirReg([^/]*)/([^/]*))$!", $thumbRel, $m ) ) {
96 [ , $archOrTemp, $rel, $filename, $thumbname ] = $m;
101 $params = [
'f' => $filename,
'rel404' => $rel ];
102 if ( $archOrTemp ===
'archive/' ) {
104 } elseif ( $archOrTemp ===
'temp/' ) {
108 $params[
'thumbName'] = $thumbname;