Ticket #1957 (assigned enhancement)

Opened 3 years ago

Last modified 3 years ago

m.h.metadata::get_languages(): if multiple hosts for same language exist prefer one with name == $_SERVER['SERVER_NAME']

Reported by: rambo Assigned to: rambo (accepted)
Priority: minor Milestone: 8.09.10 Ragnaroek
Component: MidCOM core Version: 8.09 Ragnaroek
Keywords: Cc:

Description

In staging/live setups where staging hosts are of the form https://cmsserver.domain.tld/site.domain.tld and live site of form http://site.domain.tld get_languages returns links to either live or staging hosts on both sides basically depending on chance.

This should be deterministic.

Change History

04/04/11 16:00:12 changed by rambo

  • status changed from new to assigned.

additionally shorter prefixes could be preferred to longer ones (in case there is no match for $_SERVER['SERVER_NAME')