| 1 |
<?php |
<?php |
| 2 |
/* |
/* |
| 3 |
* $Id: icl_content.module,v 1.130 2009/05/12 03:35:18 brucepearson Exp $ |
* $Id: icl_content.module,v 1.131 2009/05/29 05:24:47 brucepearson Exp $ |
| 4 |
* |
* |
| 5 |
* @file ICanLocalize content handling |
* @file ICanLocalize content handling |
| 6 |
*/ |
*/ |
| 2659 |
// This is to check for the case that we are sending a node that is a translation |
// This is to check for the case that we are sending a node that is a translation |
| 2660 |
// to be translated in a new language |
// to be translated in a new language |
| 2661 |
// eg Dutch -> English -> Chinese. |
// eg Dutch -> English -> Chinese. |
| 2662 |
$request = db_fetch_array(db_query("SELECT rid FROM {icl_content_status} WHERE nid =" . $node->nid)); |
if(isset($node->nid)){ |
| 2663 |
|
$request = db_fetch_array(db_query("SELECT rid FROM {icl_content_status} WHERE nid =" . $node->nid)); |
| 2664 |
|
} |
| 2665 |
|
|
| 2666 |
if(!isset($request['rid']) && $node->tnid != $node->nid && $node->tnid != 0){ |
if(!isset($request['rid']) && $node->tnid != $node->nid && $node->tnid != 0){ |
| 2667 |
|
|