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 authored and mrubinsk committed May 26, 2016
1 parent 6f49e8a commit df48cbd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/View/GalleryRenderer/Base.php
Original file line number Diff line number Diff line change
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 lib/View/GalleryRenderer/Gallery.php
Original file line number Diff line number Diff line change
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 lib/View/GalleryRenderer/GalleryLightbox.php
Original file line number Diff line number Diff line change
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 df48cbd

Please sign in to comment.