Skip to content

Conversation

@tgloeggl
Copy link

@tgloeggl tgloeggl commented Nov 5, 2015

The current usage of function_exists does not allow for multiple inclusion of functions.php, see
http://php.net/manual/de/function.function-exists.php#110163

The diff is a bit messy, i simply negated the if-call, put all functions into the if block and corrected the indentation.

@LukeTowers
Copy link

@tgloeggl please resubmit this to the 2.0 branch of assetic-php/assetic. @jaxwilko if @tgloeggl doesn't want to, could you implement this?

@tgloeggl
Copy link
Author

@tgloeggl please resubmit this to the 2.0 branch of assetic-php/assetic. @jaxwilko if @tgloeggl doesn't want to, could you implement this?

I would gladly but that does not seem to be necessary in that mentioned branch as all functions are separately gated (instead of my lazy variant of that) and multiple inclusions of functions.php should not result in an error anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants