From: <sk...@us...> - 2008-09-29 07:30:11
|
Revision: 1288 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1288&view=rev Author: sknappe Date: 2008-09-29 07:30:00 +0000 (Mon, 29 Sep 2008) Log Message: ----------- bugfix Modified Paths: -------------- trunk/src/dbpedia-navigator/ajax_get_article.php Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-09-29 07:20:27 UTC (rev 1287) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-09-29 07:30:00 UTC (rev 1288) @@ -65,10 +65,10 @@ else if (isset($triples['http://dbpedia.org/property/caption'])&&$triples['http://dbpedia.org/property/imageCaption'][0]['type']!='uri') $alt=$triples['http://dbpedia.org/property/caption'][0]['value']; else $alt='Picture of '.$artTitle; - if(isset($triples['http://xmlns.com/foaf/0.1/depiction'])&&fopen($triples['http://xmlns.com/foaf/0.1/depiction'], 'r')){ + if(isset($triples['http://xmlns.com/foaf/0.1/depiction'])&&fopen($triples['http://xmlns.com/foaf/0.1/depiction'][0]['value'], 'r')){ $content.='<img src="'.$triples['http://xmlns.com/foaf/0.1/depiction'][0]['value'].'" alt="'.$alt.'" style="float:right; max-width:200px;" \>'; } - else if(isset($triples['http://xmlns.com/foaf/0.1/img'])&&fopen($triples['http://xmlns.com/foaf/0.1/img'], 'r')){ + else if(isset($triples['http://xmlns.com/foaf/0.1/img'])&&fopen($triples['http://xmlns.com/foaf/0.1/img'][0]['value'], 'r')){ $content.='<img src="'.$triples['http://xmlns.com/foaf/0.1/img'][0]['value'].'" alt="'.$alt.'" style="float:right; max-width:200px;" \>'; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |