Révision a1063f68
Ajouté par Jocelyn Delande il y a presque 11 ans
class/TilesGenerator.php | ||
---|---|---|
29 | 29 |
} |
30 | 30 |
} else { |
31 | 31 |
if (file_exists($pano_path)) { |
32 |
$pano_files = scandir($pano_path); |
|
33 |
foreach($pano_files as $filename) { |
|
34 |
if (preg_match('/.*\.jpg/', $filename)) { |
|
35 |
$err = sprintf("\"%s\" contient déjà un découpage de panorama.", |
|
36 |
$pano_path); |
|
37 |
break; |
|
38 |
} |
|
32 |
if ($this->panorama->has_tiles()) { |
|
33 |
$err = sprintf("\"%s\" contient déjà un découpage de panorama.", |
|
34 |
$pano_path); |
|
39 | 35 |
} |
40 | 36 |
} else { |
41 | 37 |
mkdir($pano_path); |
Formats disponibles : Unified diff
The one-step upload now handles as well the tiles generation and stops on generation errors if needed