diff --git a/lam/lib/modules/inetOrgPerson.inc b/lam/lib/modules/inetOrgPerson.inc index f4147c03..04218faa 100644 --- a/lam/lib/modules/inetOrgPerson.inc +++ b/lam/lib/modules/inetOrgPerson.inc @@ -1616,6 +1616,7 @@ class inetOrgPerson extends baseModule implements passwordService { } $img = new htmlImage($photoFile); $img->setCSSClasses(array('photo')); + $img->enableLightbox(); $imageContainer->addElement($img, true); if (!$this->isAdminReadOnly('jpegPhoto')) { if ($noPhoto) { @@ -2985,6 +2986,7 @@ class inetOrgPerson extends baseModule implements passwordService { $photoFile = '../../tmp/' . $jpeg_filename; $img = new htmlImage($photoFile); $img->setCSSClasses(array('photo')); + $img->enableLightbox(); if ($crop) { $img->enableCropping(); } diff --git a/lam/lib/modules/windowsUser.inc b/lam/lib/modules/windowsUser.inc index 11ad3f49..2990676e 100644 --- a/lam/lib/modules/windowsUser.inc +++ b/lam/lib/modules/windowsUser.inc @@ -1288,6 +1288,7 @@ class windowsUser extends baseModule implements passwordService { } $img = new htmlImage($photoFile); $img->setCSSClasses(array('photo')); + $img->enableLightbox(); $imageContainer->addElement($img, true); if ($noPhoto) { $imageContainer->addElement(new htmlAccountPageButton(get_class($this), 'photo', 'open', _('Add photo')));