PhotoMosaic: allow sets of three portraits.

This commit is contained in:
2016-09-02 20:23:47 +02:00
parent df7655e00b
commit 7240201a3e
2 changed files with 24 additions and 0 deletions

View File

@@ -115,6 +115,10 @@ class PhotoMosaic
// Sort photos by priority and date captured.
usort($photos, 'self::orderPhotos');
// Three portraits?
if ($num_portrait === 3)
return [$photos, 'portraits'];
// At least one portrait?
if ($num_portrait >= 1)
{