Commit 818224fc authored by bgm's avatar bgm

Issue #1151296 : avoid a warning if the locale module is not enabled

parent 3089c4e8
......@@ -370,7 +370,7 @@ function boost_parse_url($url = NULL, $b_path = NULL) {
parse_str($parts['query'], $parts['query_array']);
// Check if language prefix for urls is enabled.
if (variable_get('locale_language_negotiation_url_part') == LOCALE_LANGUAGE_NEGOTIATION_URL_PREFIX) {
if (defined('LOCALE_LANGUAGE_NEGOTIATION_URL_PREFIX') && variable_get('locale_language_negotiation_url_part') == LOCALE_LANGUAGE_NEGOTIATION_URL_PREFIX) {
// Get languages grouped by status and select only the enabled ones.
$languages = language_list('enabled');
$languages = $languages[1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment