.:Sướng đê:.

05/07/2009

patch: relevant_content & i18n

Chuyên mục: linh tinh — Thẻ: — mrbuom @ 4:43 chiều

1 cái patch bé xíu để relevant_content làm việc tốt hơn với i18n


--- D:/relevant_content.module.ori	Sun Jul 05 16:19:47 2009
+++ D:/relevant_content.module	Sun Jul 05 16:06:36 2009
@@ -505,7 +505,7 @@

   // Run the query and loop over the resultset, storing the returned nodes in an array using the Node ID as a key and the 5 fields selected as the values
-  $result = db_query($sql, $values);
+  $result = db_query(db_rewrite_sql($sql), $values);
   $nodes = array();
   while ($row = db_fetch_array($result)) {
     $nodes[$row['nid']] = $row;

No Comments Yet »

Chưa có phản hồi.

RSS các phản hồi của bài viết này. URL TrackBack

Để lại phản hồi

Blog at WordPress.com.