Skip to content

Commit

Permalink
this one fixes creating galleries with php 7.0, because
Browse files Browse the repository at this point in the history
type hinted parameter must be set to null to allow passing null in file GalleryProperties.php
  • Loading branch information
BigMichi1 committed May 26, 2016
1 parent 0e5a72b commit 8f9c039
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ansel/lib/View/GalleryRenderer/Base.php
Expand Up @@ -122,7 +122,7 @@ abstract class Ansel_View_GalleryRenderer_Base
*
* @param Ansel_View_Gallery The view object for this renderer.
*/
public function __construct(Ansel_View_Gallery $view)
public function __construct(Ansel_View_Gallery $view = null)
{
$this->view = $view;
Ansel_ActionHandler::imageActions(Horde_Util::getFormData('actionID'));
Expand Down
2 changes: 1 addition & 1 deletion ansel/lib/View/GalleryRenderer/Gallery.php
Expand Up @@ -24,7 +24,7 @@
class Ansel_View_GalleryRenderer_Gallery extends Ansel_View_GalleryRenderer_Base
{

public function __construct(Ansel_View_Gallery $view)
public function __construct(Ansel_View_Gallery $view = null)
{
parent::__construct($view);
$this->title = _("Standard Gallery");
Expand Down
2 changes: 1 addition & 1 deletion ansel/lib/View/GalleryRenderer/GalleryLightbox.php
Expand Up @@ -23,7 +23,7 @@
*/
class Ansel_View_GalleryRenderer_GalleryLightbox extends Ansel_View_GalleryRenderer_Base
{
public function __construct(Ansel_View_Gallery $view)
public function __construct(Ansel_View_Gallery $view = null)
{
parent::__construct($view);
$this->title = _("Lightbox Gallery");
Expand Down

0 comments on commit 8f9c039

Please sign in to comment.