Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Reduce the use of JBrowser. #1300

Merged
merged 1 commit into from Jun 29, 2012
Merged

Reduce the use of JBrowser. #1300

merged 1 commit into from Jun 29, 2012

Conversation

realityking
Copy link
Contributor

Note that JHtml still depends on JBrowser, we'll need to fix that before we can move JBrowser to legacy.

Legacy unit tests run fine on my local machine.

*
* @since 12.2
*/
public function isSSLConnection()
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't it a static method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't make it static in JApplication to facilitate us eventually moving to JApplicationWeb. and removing JApplication. So I'd be fine doing it here, however I think that's potentially confusing. Maybe we should make it static after dropping JApplication?

@chdemko
Copy link
Contributor

chdemko commented Jun 28, 2012

a static method could always be called using
$this->isSSLConnection

@realityking
Copy link
Contributor Author

True. But at least for JApplication I'd prefer people not using it since it will eventually disappear.

*/
public function isSSLConnection()
{
JLog::add('JBrowser::isSSLConnection() is deprecated. Use the isSSLConnection method on the application object instead.', JLog::WARNING, 'deprecated');
Copy link
Contributor

Choose a reason for hiding this comment

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

The line is too long (checkstyle)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, fixed.

chdemko added a commit that referenced this pull request Jun 29, 2012
@chdemko chdemko merged commit e4bda8f into joomla:staging Jun 29, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants