Changeset View
Changeset View
Standalone View
Standalone View
src/applications/celerity/CeleritySpriteGenerator.php
Context not available. | |||||
$images = Filesystem::listDirectory($path, $include_hidden = false); | $images = Filesystem::listDirectory($path, $include_hidden = false); | ||||
foreach ($images as $image) { | foreach ($images as $image) { | ||||
if (!preg_match('/\.png$/', $image)) { | if (!@preg_match('/\.png$/', $image)) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
"Expected file '%s' in '%s' to be a sprite source ending in '%s'.", | "Expected file '%s' in '%s' to be a sprite source ending in '%s'.", | ||||
Context not available. | |||||
$path, | $path, | ||||
'.png')); | '.png')); | ||||
} | } | ||||
$result[] = substr($image, 0, -4); | $result[] = @substr($image, 0, -4); | ||||
} | } | ||||
return $result; | return $result; | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0