Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: avia-template-builder Improvement #926368

    Hi Basilis,

    That sounds great! Will these updates contains a fix for the ‘\’ character in name-spaced classes?

    Thanks,
    Jason

    in reply to: avia-template-builder Improvement #924269

    Hi Nikko,

    Thank you for forwarding it. :)
    Let me know what they think.

    Thanks,
    Jason

    in reply to: Enfold 3.1.5 on PHP 7.0.0alpha2 #545266

    To fix this issues you would not change
    $this->output .= $this->$rule[‘key’]($rule).”\n”;
    to
    $this->output .= $this->$rule[‘key’][$rule].”\n”;

    rather you would change
    $this->output .= $this->$rule[‘key’]($rule).”\n”;
    to
    $this->output .= $this->{ $rule[‘key’] } ($rule).”\n”;

    The first options changes the meaning of enfold’s code and can cause more problems. The problem that php7 is that it is evaulating the following phrase $this->$rule[‘key’]($rule) as $this->{$rule}[”key’] instead of $this->{ $rule[‘key’] }. The curly braces define the order of evaluation. So putting curly braces around the statement $rule[‘key’] will force php the use the string instance instead of the whole array.

Viewing 3 posts - 1 through 3 (of 3 total)