/[drupal]/contributions/modules/globalredirect/globalredirect.module
ViewVC logotype

Diff of /contributions/modules/globalredirect/globalredirect.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.4.2.5.2.12, Mon Dec 22 10:07:43 2008 UTC revision 1.1.2.4.2.5.2.13, Mon Dec 22 10:32:54 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: globalredirect.module,v 1.1.2.4.2.5.2.11 2008/12/22 09:36:09 njt1982 Exp $  // $Id: globalredirect.module,v 1.1.2.4.2.5.2.12 2008/12/22 10:07:43 njt1982 Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 14  define('GLOBALREDIRECT_TRAILINGZERO_ALL' Line 14  define('GLOBALREDIRECT_TRAILINGZERO_ALL'
14    
15  define('GLOBALREDIRECT_NONCLEAN2CLEAN_ENABLED', 1);  define('GLOBALREDIRECT_NONCLEAN2CLEAN_ENABLED', 1);
16    
17    define('GLOBALREDIRECT_CASE_SENSITIVE_URLS_ENABLED', 1);
18    
19  define('GLOBALREDIRECT_DESLASH_ENABLED', 1);  define('GLOBALREDIRECT_DESLASH_ENABLED', 1);
20    
21  define('GLOBALREDIRECT_MENU_CHECK_ENABLED', 1);  define('GLOBALREDIRECT_MENU_CHECK_ENABLED', 1);
# Line 132  function globalredirect_init() { Line 134  function globalredirect_init() {
134      }      }
135    
136      // Alias case sensitivity check. If there is an alias from the previous lookup, do a query to test for case.      // Alias case sensitivity check. If there is an alias from the previous lookup, do a query to test for case.
137      if ($alias) {      if ($alias && variable_get('globalredirect_case_sensitive_urls', GLOBALREDIRECT_CASE_SENSITIVE_URLS_ENABLED) == GLOBALREDIRECT_CASE_SENSITIVE_URLS_ENABLED) {
138        $alias_sensitive = db_result(db_query("SELECT dst FROM {url_alias} WHERE dst = '%s'", $alias));        $alias_sensitive = db_result(db_query("SELECT dst FROM {url_alias} WHERE dst = '%s'", $alias));
139        if ($alias_sensitive && $alias != $alias_sensitive) {        if ($alias_sensitive && $alias != $alias_sensitive) {
140          // There is a match and there is a difference in case.          // There is a match and there is a difference in case.

Legend:
Removed from v.1.1.2.4.2.5.2.12  
changed lines
  Added in v.1.1.2.4.2.5.2.13

  ViewVC Help
Powered by ViewVC 1.1.2