diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-11 15:48:50 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-11 15:48:50 +0200 |
commit | 80707aa9e3c2925b4ae995661013be622963c217 (patch) | |
tree | bfd86604827bc9ca6bb86292467a18afd8924322 /bl/feedbl.php | |
parent | 7808ff902b745b8e7d2fabb5f941d818b0dc78fd (diff) |
translate folder and feed errors and added css and template code for creating folders and feeds and what happens when an error gets triggered
Diffstat (limited to 'bl/feedbl.php')
-rw-r--r-- | bl/feedbl.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bl/feedbl.php b/bl/feedbl.php index 9dc8cd312..0c0bbe9e0 100644 --- a/bl/feedbl.php +++ b/bl/feedbl.php @@ -58,7 +58,8 @@ class FeedBl extends Bl { // first try if the feed exists already try { $this->mapper->findByUrlHash(md5($feedUrl), $userId); - throw new BLException('Can not add feed: Exists already'); + throw new BLException( + $this->api->getTrans()->t('Can not add feed: Exists already')); } catch(DoesNotExistException $ex){} try { @@ -83,8 +84,9 @@ class FeedBl extends Bl { return $feed; } catch(FetcherException $ex){ $this->api->log($ex->getMessage()); - throw new BLException('Can not add feed with url' . $feedUrl . - ': Not found or bad source'); + throw new BLException( + $this->api->getTrans()->t( + 'Can not add feed: URL does not exist or has invalid xml')); } } |