Add single photo pages, navigateable by arrow keys and touch gestures.

This commit is contained in:
Aaron committed 2017-11-09 17:00:34 +01:00
1 parent e6b0c13354
commit f86a3ce358
9 files changed
+378 -11

No files matched your search

+6
View File
@@ -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();