Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

Global fixes#6507

Merged
weerd merged 2 commits intodevfrom
global-fixes
May 26, 2016
Merged

Global fixes#6507
weerd merged 2 commits intodevfrom
global-fixes

Conversation

@weerd
Copy link
Contributor

@weerd weerd commented May 26, 2016

What's this PR do?

This PR updates the dosomething_global_get_prefix_for_language() function to allow it to fallback to no prefix returned for the URL (thus a global URL) if the passed $language isn't found in the list of supported languages. Prior to this, if somehow a language was passed that wasn't supported, we'd get lots of logged error notices.

How should this be reviewed?

Pull down the branch, use ModHeader chrome extension to pretend you're coming in from Canada, load the site and check the logs. If there are no errors regarding Undefined index: en-ca in dosomething_global_get_prefix_for_language() then all should be good.

Any background context you want to provide?

This is only part of a fix that may be related to the larger issue in #6488

Relevant tickets

Refs #6488


@angaither @joe

@angaither
Copy link
Contributor

👍

@weerd weerd merged commit 7f66689 into dev May 26, 2016
@weerd weerd deleted the global-fixes branch May 26, 2016 15:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants