Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
#481856 by smk-ka, kndr, Dave Reid | Damien Tournoud: Fixed PHP notic…
…e if url() option 'external' was not set.
  • Loading branch information
davereid committed Mar 3, 2010
1 parent 42cebf7 commit 714665d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions globalredirect.module
Expand Up @@ -105,7 +105,14 @@ function globalredirect_init() {

// Establish the language prefix that should be used, ie. the one that
// drupal_goto() would use
$options = array('prefix' => '');
$options = array(
'fragment' => '',
'query' => array(),
'absolute' => FALSE,
'alias' => FALSE,
'prefix' => '',
'external' => FALSE,
);
if (function_exists('language_url_rewrite')) {
// Note that language_url_rewrite() takes path (by reference) as the
// first argument but does not use it at all
Expand Down Expand Up @@ -186,7 +193,6 @@ function globalredirect_init() {
}
}


/**
* Implements hook_menu().
*/
Expand Down

0 comments on commit 714665d

Please sign in to comment.