--- a/Entity/TagRepository.php Fri Dec 09 02:21:17 2011 +0100
+++ b/Entity/TagRepository.php Fri Dec 09 02:27:20 2011 +0100
@@ -83,12 +83,7 @@
if($created==true || $tag->getUrlStatus()===Tag::$TAG_URL_STATUS_DICT['null_result']) {
if($wp_request_done==false) {
- try {
- $wp_response = WikiTagUtils::getWikipediaInfo($tag_label_normalized);
- }
- catch (\Exception $e){
- throw new \Exception($e->getMessage());
- }
+ $wp_response = WikiTagUtils::getWikipediaInfo($tag_label_normalized);
}
$tag->setWikipediaInfo($wp_response);
@@ -101,13 +96,8 @@
$wikipedia_revision_id = $wp_response['revision_id'];
}
- else if($tag!=null && $tag->getWikipediaPageId()!=null) {
- try {
- $wp_response = WikiTagUtils::getWikipediaInfo(null, $tag->getWikipediaPageId());
- }
- catch (\Exception $e){
- throw new \Exception($e->getMessage());
- }
+ elseif($tag!=null && $tag->getWikipediaPageId()!=null) {
+ $wp_response = WikiTagUtils::getWikipediaInfo(null, $tag->getWikipediaPageId());
$wikipedia_revision_id = $wp_response['revision_id'];
}
else {