r47973 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47972‎ | r47973 | r47974 >
Date:11:12, 3 March 2009
Author:daniel
Status:deferred
Tags:
Comment:
fix undef vars
Modified paths:
  • /trunk/WikiWord/WikiWord/src/main/php/wikiword.php (modified) (history)

Diff [purge]

Index: trunk/WikiWord/WikiWord/src/main/php/wikiword.php
@@ -27,9 +27,9 @@
2828 if (!isset($weight) && isset($freq)) $weight = $freq;
2929 if (!isset($weight) && isset($conf)) $weight = $conf;
3030 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;
3232 if (!isset($concept) && isset($id)) $concept = $id;
33 - if (!isset($concept) && isset($id)) $concept = NULL;
 33+ if (!isset($concept)) $concept = NULL;
3434
3535 $wu = $concept_name ? "http://$lang.wikipedia.org/wiki/" . urlencode($concept_name) : NULL;
3636 $cu = "$wwSelf?id=" . urlencode($concept) . "&lang=" . urlencode($lang);

Status & tagging log