J 2.5 filter out disabled languages

More
12 years 2 months ago #35983 by zouz747
Shouldn't the join in getlanguageslist() ln 2717 be INNER so as not to return disabled languages in #__extensions?
Or add criteria in WHERE CLAUSE "AND le.enabled"?

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #35984 by ggppdk
Hello,

Look at the end part of it:

.' LEFT JOIN #__languages as lc ON lc.lang_code=le.element AND lc.published=1'

it has lc.published=1

So, i think that the different results that you see is not because of published/unpublished , but because Joomla 2.5 requires you to create Content Language entries , thus you may have installed 7 languages , but created languages entries for 4 , so the are 4 languages in the LEFT joined table so the inner join will return only those, so i think probably are right , we should change it to INNER,

I will examine the above, but you can tell us if you have e.g. 7 languages and you have created Content Language entries for 4 of them , is this the case ??


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #35985 by zouz747
Thanx for your quick reply.
I installed en-US on top of default en-UK thus couldn't create extra content language as 'en' required unique. So I disabled en-US for now, not uninstalled. I'm pretty sure en-US shouldn't show in the item view as long as it's disabled no matter what published status is.
rgds

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #35987 by ggppdk
Hello,
i see

and yes the reason for it is the LEFT JOIN ,
thanks for feedback


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.304 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save