forked from Public/pics
Backport asynchronous thumbnail generation from Kabuki.
This commit is contained in:
@@ -44,6 +44,12 @@ class Dispatcher
|
||||
{
|
||||
return new ViewPhotoAlbum();
|
||||
}
|
||||
// Asynchronously generating thumbnails?
|
||||
elseif (preg_match('~^/thumbnail/(?<id>\d+)/(?<width>\d+)x(?<height>\d+)(?:_(?<mode>c(t|b|s|)))?/?~', $_SERVER['PATH_INFO'], $path))
|
||||
{
|
||||
$_GET = array_merge($_GET, $path);
|
||||
return new GenerateThumbnail();
|
||||
}
|
||||
// Look for particular actions...
|
||||
elseif (preg_match('~^/(?<action>[a-z]+)(?:/page/(?<page>\d+))?/?~', $_SERVER['PATH_INFO'], $path) && isset($possibleActions[$path['action']]))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user