? Success

User tests: Successful: Unsuccessful:

avatar smz
smz
31 May 2015

Description

By removing the dependency on JFactory::getApplication() we will be able to efficiently use this method in the application initialization phase (e.g. see #6309)

After all, at least one hit on the database will always be required, directly or indirectly, so I think it is just better to do it here and then rely on the static $enabled variable.

Test instructions

Multilingual and non-multilingual sites should behave as before.

avatar smz smz - open - 31 May 2015
avatar smz
smz - comment - 31 May 2015

@infograf768 JM, your opinion?

avatar zero-24 zero-24 - change - 31 May 2015
Category Multilanguage
avatar zero-24 zero-24 - change - 31 May 2015
Status New Pending
avatar zero-24 zero-24 - change - 31 May 2015
Labels Added: ?
avatar smz
smz - comment - 1 Jun 2015

While testing this and an unpublished branch where I make modifications similar to @Hackwar #6309, I discovered that there are other issues in JApplicationSite::initialiseApp() that negate the usefulness of this patch.

Therefore, and for the time being, I'm closing this.
I might decide to reopen it if we get around the other issues (which I'll comment in #6309 as it is probably the best place where to talk about it)

avatar smz smz - change - 1 Jun 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-06-01 00:27:05
Closed_By smz
avatar smz smz - close - 1 Jun 2015

Add a Comment

Login with GitHub to post a comment