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

Diff of /contributions/modules/image_filter/image_filter.module

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

revision 1.5, Sun Nov 21 10:27:08 2004 UTC revision 1.6, Wed Nov 24 22:03:32 2004 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: image_filter.module,v 1.4 2004/11/21 00:34:39 mrowe Exp $  // $Id: image_filter.module,v 1.5 2004/11/21 10:27:08 mrowe Exp $
3    
4  function image_filter_help($section = 'admin/help#image_filter') {  function image_filter_help($section = 'admin/help#image_filter') {
5    global $base_url;    global $base_url;
# Line 69  function image_filter_process($text) { Line 69  function image_filter_process($text) {
69        $map[$value] = $key;        $map[$value] = $key;
70      }      }
71    
72      $result = db_query("SELECT n.nid, n.teaser, i.thumb_path FROM {image} i, {node} n WHERE n.status = 1 AND i.nid = n.nid AND n.nid IN ('" . implode("','", array_map('check_query', $match[1])) . "')");      $result = db_query("SELECT n.nid, n.teaser, i.thumb_path FROM {image} i, {node} n WHERE n.status = 1 AND i.nid = n.nid AND n.nid IN ('" . implode("','", array_map('db_escape_string', $match[1])) . "')");
73    
74      while ($img = db_fetch_object($result)) {      while ($img = db_fetch_object($result)) {
75        $n = $map[$img->nid];        $n = $map[$img->nid];
# Line 104  function image_filter_process($text) { Line 104  function image_filter_process($text) {
104        $map[$value] = $key;        $map[$value] = $key;
105      }      }
106    
107      $result = db_query("SELECT n.nid, n.title, i.thumb_path FROM {image} i, {node} n WHERE n.status = 1 AND i.nid = n.nid AND n.nid IN ('" . implode("','", array_map("check_query", $match[1])) . "')");      $result = db_query("SELECT n.nid, n.title, i.thumb_path FROM {image} i, {node} n WHERE n.status = 1 AND i.nid = n.nid AND n.nid IN ('" . implode("','", array_map("db_escape_string", $match[1])) . "')");
108    
109      while ($img = db_fetch_object($result)) {      while ($img = db_fetch_object($result)) {
110    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.2