Skip to content

[4.0] Change "defined('_JEXEC') or die;" to "\defined('_JEXEC') or die;"#28419

Merged
zero-24 merged 1 commit intojoomla:4.0-devfrom
astridx:define1
Mar 24, 2020
Merged

[4.0] Change "defined('_JEXEC') or die;" to "\defined('_JEXEC') or die;"#28419
zero-24 merged 1 commit intojoomla:4.0-devfrom
astridx:define1

Conversation

@astridx
Copy link
Copy Markdown
Contributor

@astridx astridx commented Mar 21, 2020

A \ before the beginning of a function represents the Global Namespace in PHP. Putting it there will ensure that the function called is from the global namespace, even if there is a function by the same name in the current namespace.

Summary of Changes

I added a backslash in front of defined('_JEXEC') or die; for the namespaced files if it was not already there.
Up to know I covert the folders administrator, components, modules, plugins, layout and template.

Testing Instructions

Code review.

@astridx astridx changed the title [4.0] Change 2defined('_JEXEC') or die;" to "\defined('_JEXEC') or die;" [4.0] Change "defined('_JEXEC') or die;" to "\defined('_JEXEC') or die;" Mar 21, 2020
@zero-24 zero-24 added this to the Joomla 4.0 milestone Mar 24, 2020
@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Mar 24, 2020

merging on review thanks @astridx

@zero-24 zero-24 merged commit 0289d4b into joomla:4.0-dev Mar 24, 2020
@astridx astridx deleted the define1 branch August 9, 2020 12:27
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.

4 participants