So we have 3 languages.
But we are not enabling the other 2 yet, but want the functionality available.
Global redirect throws an error on this
LOCALE_LANGUAGE_NEGOTIATION_URL_PREFIX - assumed 'LOCALE_LANGUAGE_NEGOTIATION_URL_PREFIX' in globalredirect_init() (line 142 of /var/www/cccj/live/public/sites/all/modules/globalredirect/globalredirect.module).
However if you change the code on this line -->
if ($settings['language_redirect'] && module_exists('translation') && preg_match('/node\/([0-9]+)(\/.+|)$/', $current_path, $matches)) {
to
if (drupal_multilingual() && $settings['language_redirect'] && module_exists('translation') && preg_match('/node\/([0-9]+)(\/.+|)$/', $current_path, $matches)) {
It goes away.
drupal_multilingual Returns TRUE if there is more than one language enabled.
http://api.drupal.org/api/drupal/includes!bootstrap.inc/function/drupal_...
There might be implications of doing this, but thought you should know about it.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1770186-1.patch | 843 bytes | Lukas von Blarer |
Comments
Comment #1
Lukas von BlarerI created a patch with code replacements you made. It made the error go away.