Index: trunk/WikiWord/WikiWord/src/main/php/wikiword.php |
— | — | @@ -27,9 +27,9 @@ |
28 | 28 | if (!isset($weight) && isset($freq)) $weight = $freq; |
29 | 29 | if (!isset($weight) && isset($conf)) $weight = $conf; |
30 | 30 | if (!isset($concept_name) && isset($name)) $concept_name = $name; |
31 | | - if (!isset($concept_name) && isset($name)) $concept_name = NULL; |
| 31 | + if (!isset($concept_name)) $concept_name = NULL; |
32 | 32 | if (!isset($concept) && isset($id)) $concept = $id; |
33 | | - if (!isset($concept) && isset($id)) $concept = NULL; |
| 33 | + if (!isset($concept)) $concept = NULL; |
34 | 34 | |
35 | 35 | $wu = $concept_name ? "http://$lang.wikipedia.org/wiki/" . urlencode($concept_name) : NULL; |
36 | 36 | $cu = "$wwSelf?id=" . urlencode($concept) . "&lang=" . urlencode($lang); |