Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move JHelp to namespace #14232

Merged
merged 1 commit into from
Feb 26, 2017
Merged

Conversation

laoneo
Copy link
Member

@laoneo laoneo commented Feb 24, 2017

Moves JHelp to namespace. But honestly I couldn't find any reference to this class in the whole repo. So can it be deprecated?

@mbabker
Copy link
Contributor

mbabker commented Feb 24, 2017

It's used in part with the help screen system. There are a couple calls to JHelp::createUrl() in com_admin.

@laoneo
Copy link
Member Author

laoneo commented Feb 24, 2017

True, didn't search globally 🙈

$lang = JFactory::getLanguage();
$version = new JVersion;
$lang = \JFactory::getLanguage();
$version = new \JVersion;
Copy link
Member

@yvesh yvesh Feb 24, 2017

Choose a reason for hiding this comment

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

As you are going to namespace JVersion, JText etc. too, don't you want to start by namespacing the most used / important ones first and then use the namespaced version here ;)

Else you need to go again through each file

@wilsonge wilsonge merged commit 4ad4088 into joomla:3.8-dev Feb 26, 2017
@wilsonge wilsonge added this to the Joomla 3.8.0 milestone Feb 26, 2017
@laoneo laoneo deleted the j3/namespace/help branch February 28, 2017 15:26
@mbabker mbabker added this to Known Issue in [4.0] Namespacing Apr 19, 2017
@mbabker mbabker moved this from Known Issue to Completed in [4.0] Namespacing Apr 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants