Permalink
Browse files

links to contain _ instead of +

  • Loading branch information...
addshore committed May 15, 2013
1 parent bed7260 commit 9b47ff6896211947c0643b0913deae1208c17ba0
Showing with 3 additions and 3 deletions.
  1. +3 −3 public_html/addbot/iwlinks/index.html
@@ -99,9 +99,9 @@
$out .= "\n<div><table><tr><th>Article</th><th>Wikidata</th><th>Links</th><th>Last Checked*</th></tr>\n";
foreach ($res as $r)
{
//check if the article already has a wikidata entry
$out .= "<tr><td><a href='https://".str_replace('_','-',$_GET['lang']).".wikipedia.org/wiki/".urlencode($r['article'])."'>".$r['article']."</a></td>";
$out .= "<td><a href='https://www.wikidata.org/wiki/Special:ItemByTitle/".str_replace('_','-',$_GET['lang'])."wiki/".urlencode($r['article'])."'>LINK</a></td>";
//check if the article already has a wikidata entry
$out .= "<tr><td><a href='https://".str_replace('_','-',$_GET['lang']).".wikipedia.org/wiki/".urlencode(str_replace(' ','_',$r['article']))."'>".$r['article']."</a></td>";
$out .= "<td><a href='https://www.wikidata.org/wiki/Special:ItemByTitle/".str_replace('_','-',$_GET['lang'])."wiki/".urlencode(str_replace(' ','_',$r['article']))."'>LINK</a></td>";
$out .= "<td>".$r['links']."</td>";
$out .= "<td>".$r['checked']."</td></tr>\n";
}

0 comments on commit 9b47ff6

Please sign in to comment.