Repository navigation
Conversation
Fixes include() parameter order consistency with explode() to suppress deprecation warnings in PHP 7.4.
Fixes bool error in PHP 7.4 by providing an empty value if category images are not set.
Added PHP version check to the get_magic_quotes_gpc check since it got deprecated in 7.4 and throws a warning.
Removes an errant space and fixes PHP 7.4 notice (when debugging): "Trying to access array offset on value of type bool" Added some checks before $last['time'] and $last['memory'] are used for debugging.
Remove notice in 7.4 by creating simple check for the include jquery_ui variable before checking if it exists.
Add check for $field_name value before checking $field_name.
Added changes and formatting.
Fixes deprecation warning messages: Array and string offset access syntax with curly braces is deprecated
Fixes deprecation warning messages: Array and string offset access syntax with curly braces is deprecated
Contributor
|
Conflicts were resolved locally and pushed up to stability directly. Closing this PR. |
intoeetive
pushed a commit
that referenced
this pull request
Oct 27, 2021
EECORE-482 Creating a template group shouldn't have the abilit to clone "None"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
NEEDS TESTING
This collection updates just a few lines for PHP 7.4 errors/warnings/deprecation notices.
It's basically just a few ternary statements to make sure something exists before it's called (various files), plus little syntax adjustments in one file (mod.channel.php), and a PHP version check for magic_quotes in another (Input.php).
Changed files include:
system/ee/EllisLab/ExpressionEngine/Model/Channel/ChannelLayout.php
system/ee/EllisLab/Addons/channel/mod.channel.php
system/ee/EllisLab/Addons/rte/libraries/Rte_lib.php
system/ee/legacy/libraries/channel_entries_parser/components/Category.php
system/ee/legacy/libraries/Template.php
system/ee/legacy/core/Input.php
Is this backwards compatible?
Needs proper testing with PHP 5.6 - 7.3.