Skip to content

Commit

Permalink
Removes hardcoded language
Browse files Browse the repository at this point in the history
  • Loading branch information
terwey committed Mar 26, 2014
1 parent 8875c1e commit 5a0faed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function patchArticleAction(Request $request, $number, $language)
$translator = \Zend_Registry::get('container')->getService('translator');

// Fetch article
$articleObj = new \Article(1, $clean['articleNumber']);
$articleObj = new \Article($clean['languageId'], $clean['articleNumber']);

if (!$articleObj->exists()) {
throw new NewscoopException('Article does not exist');
Expand Down

0 comments on commit 5a0faed

Please sign in to comment.