Add single photo pages, navigateable by arrow keys and touch gestures.
This commit is contained in:
@@ -53,6 +53,12 @@ class Dispatcher
|
||||
$_GET = array_merge($_GET, $path);
|
||||
return new ViewPhotoAlbum();
|
||||
}
|
||||
// A photo for sure, then, right?
|
||||
elseif (preg_match('~^/(?<slug>.+?)/?$~', $_SERVER['PATH_INFO'], $path))
|
||||
{
|
||||
$_GET = array_merge($_GET, $path);
|
||||
return new ViewPhoto();
|
||||
}
|
||||
// No idea, then?
|
||||
else
|
||||
throw new NotFoundException();
|
||||
|
||||
Reference in New Issue
Block a user