--- a/Controller/WikiTagController.php Mon Dec 19 18:15:42 2011 +0100
+++ b/Controller/WikiTagController.php Mon Dec 26 22:53:50 2011 +0100
@@ -201,7 +201,7 @@
}
// We create the new tag or get the already existing tag. $tag, $revision_id, $created
try {
- $ar = $this->getDoctrine()->getRepository('WikiTagBundle:Tag')->getOrCreateTag($tag_label);
+ $ar = $this->getDoctrine()->getRepository('WikiTagBundle:Tag')->getOrCreateTag($tag_label, $this->container->getParameter('wiki_tag.ignore_wikipedia_error'));
}
catch (\Exception $e){
return new Response(json_encode(array('error' => 'wikipedia_request_failed', 'message' => $e->getMessage())),400);
@@ -563,7 +563,7 @@
if($tag!=null && $label!=null){
// We get the Wikipedia informations for the sent label
$tag_label_normalized = WikiTagUtils::normalizeTag($label);
- $wp_response = WikiTagUtils::getWikipediaInfo($tag_label_normalized);
+ $wp_response = WikiTagUtils::getWikipediaInfo($tag_label_normalized, null, $this->container->getParameter('wiki_tag.ignore_wikipedia_error'));
$tag->setWikipediaInfo($wp_response);
// Save datas.
$em = $this->getDoctrine()->getEntityManager();