/[drupal]/contributions/modules/localizer/modules/localizernode.module
ViewVC logotype

Diff of /contributions/modules/localizer/modules/localizernode.module

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

revision 1.8.2.9, Tue Jul 15 13:58:20 2008 UTC revision 1.8.2.10, Fri Aug 1 07:20:15 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: localizernode.module,v 1.8.2.8 2008/07/15 08:52:07 robertogerola Exp $  // $Id: localizernode.module,v 1.8.2.9 2008/07/15 13:58:20 robertogerola Exp $
3    
4  /**  /**
5   * Localizer node module.   * Localizer node module.
# Line 220  function localizernode_db_rewrite_sql($q Line 220  function localizernode_db_rewrite_sql($q
220    
221    if ($applylocalizer) {    if ($applylocalizer) {
222      $contents_types_enabled = variable_get('localizer_contents_types', array());      $contents_types_enabled = variable_get('localizer_contents_types', array());
223      preg_match('/\s+type\s*=\s*\'\S*\'/', $query, $matches);      preg_match('/'. $primary_table .'\.type\s*=\s*\'\S*\'/', $query, $matches);
224      $pos = strpos($matches[0], "'");      $pos = strpos($matches[0], "'");
225      $type = str_replace("'", "", substr($matches[0], $pos));      $type = str_replace("'", "", substr($matches[0], $pos));
226      if ($type && !$contents_types_enabled[$type]) $applylocalizer = FALSE;      if ($type && !$contents_types_enabled[$type]) $applylocalizer = FALSE;

Legend:
Removed from v.1.8.2.9  
changed lines
  Added in v.1.8.2.10

  ViewVC Help
Powered by ViewVC 1.1.2