Skip to content

Commit

Permalink
Merge branch 'BigMichi1-PHP7_null_fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed May 26, 2016
2 parents 0e5a72b + 8f9c039 commit dcc0b8c
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 dcc0b8c

Please sign in to comment.