From: <sk...@us...> - 2008-09-29 07:37:22
|
Revision: 1289 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1289&view=rev Author: sknappe Date: 2008-09-29 07:37:09 +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:30:00 UTC (rev 1288) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-09-29 07:37:09 UTC (rev 1289) @@ -61,11 +61,11 @@ $artTitle=urldecode(str_replace("_"," ",substr (strrchr ($url, "/"), 1))); // display a picture if there is one - if (isset($triples['http://dbpedia.org/property/imageCaption'])&&$triples['http://dbpedia.org/property/imageCaption'][0]['type']!='uri') $alt=$triples['http://dbpedia.org/property/imageCaption'][0]['value']; + if (isset($triples['http://dbpedia.org/property/imageCaption'])&&@$triples['http://dbpedia.org/property/imageCaption'][0]['type']!='uri') $alt=$triples['http://dbpedia.org/property/imageCaption'][0]['value']; 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'][0]['value'], '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'][0]['value'], 'r')){ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |