PHP 7 compatibility

Permalink Browser Info Environment
This addon does not work on PHP 7: viewing the block results in this error:
Declaration of
Concrete\Package\WhaleElasticSlider\Block\WhaleElasticSlider\Controller::validate()
should be compatible with
Concrete\Core\Block\BlockController::validate($args)


To solve this issue, I modified the blocks/whale_elastic_slider/controller.php file by changing from
public function validate()
    {
        $e = Core::make('helper/validation/error');
        if((int)$this->post('sliderID')==0) {

to
public function validate($args)
    {
        $e = Core::make('helper/validation/error');
        if((int)$args['sliderID']==0) {

Type: Discussion
Status: In Progress
progesoft
View Replies:
shahroq replied on at Permalink Reply
shahroq
Hi,
We will fix this issue on all our add-ons master copies, and it will be available on next update.
Thanx anyway for the hint.
Cheers,

concrete5 Environment Information

n/a

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.