Skip to content

Commit

Permalink
Update TranslationsController.php
Browse files Browse the repository at this point in the history
Closes hpolthof#7 - do not throw exception to the front-end
  • Loading branch information
FDiskas committed Mar 12, 2016
1 parent 0921dd5 commit 61c9bb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Controllers/TranslationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public function getLocales() {
}

public function postItems(Request $request) {
if(strlen($request->get('translate')) == 0) throw new TranslationException();

$base = \DB::table('translations')
->select('name', 'value')
Expand Down Expand Up @@ -104,4 +103,4 @@ public function postDelete(Request $request)
->where('name', strtolower($request->get('name')))->delete();
return 'OK';
}
}
}

0 comments on commit 61c9bb5

Please sign in to comment.