Skip to content

Make parseLayoutVariables public#4638

Merged
TomJaeger merged 1 commit intoExpressionEngine:7.devfrom
litzinger:public-parse-layout-variables
Jun 16, 2025
Merged

Make parseLayoutVariables public#4638
TomJaeger merged 1 commit intoExpressionEngine:7.devfrom
litzinger:public-parse-layout-variables

Conversation

@litzinger
Copy link
Contributor

@litzinger litzinger commented Dec 19, 2024

Making this public will let me greatly improve how Speedy parses cached templates that use layout variables.

$this->layout_vars is already public, along with most other methods to parse globals, vars etc, and even some methods that are prefixed with an underscore, which is usually indicative of a private method. Making this public doesn't feel like it would have adverse side effects?

Making this public will let me greatly improve how Speedy parses cached templates that use layout variables.

$this->layout_vars is already public, along with most other methods to parse globals, vars etc, and even some methods that are prefixed with an underscore, which is usually indicative of a private method.
{
$this->log_item("Layout Variables:", $layout_vars);
$this->layout_conditionals = [];
$layout_conditionals = [];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 790 attempts to assign a variable to the class property, but it's not created until line 725, or in my case not at all. Add this so it doesn't throw an error.

@intoeetive intoeetive modified the milestones: 7.x, 7.5.13 May 22, 2025
@TomJaeger TomJaeger merged commit 6d697f9 into ExpressionEngine:7.dev Jun 16, 2025
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants