1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-22 17:18:37 +00:00

Added name on client

- Fix typos in field name
- Added migration for name field in API client table

Manually cherry-picked from PR
https://github.com/wallabag/wallabag/pull/2171
This commit is contained in:
Thomas Citharel 2016-05-21 18:09:38 +02:00 committed by Jeremy Benoist
parent db4d63fc1a
commit 9c545fe028
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
13 changed files with 110 additions and 24 deletions

View file

@ -49,12 +49,13 @@ class DeveloperController extends Controller
$this->get('session')->getFlashBag()->add(
'notice',
'flashes.developer.notice.client_created'
$this->get('translator')->trans('flashes.developer.notice.client_created', array('%name%' => $client->getName()))
);
return $this->render('WallabagCoreBundle:Developer:client_parameters.html.twig', [
'client_id' => $client->getPublicId(),
'client_secret' => $client->getSecret(),
'client_name' => $client->getName(),
]);
}
@ -80,7 +81,7 @@ class DeveloperController extends Controller
$this->get('session')->getFlashBag()->add(
'notice',
'flashes.developer.notice.client_deleted'
$this->get('translator')->trans('flashes.developer.notice.client_deleted', array('%name%' => $client->getName()))
);
return $this->redirect($this->generateUrl('developer'));