diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-05-21 18:09:38 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-08-22 20:18:27 +0200 |
commit | 9c545fe028013b30417c1a932cd6b9027bff752d (patch) | |
tree | 3de7e843c34d058355a3b3a4c090b61bca9c2078 /src/Wallabag/CoreBundle/Controller | |
parent | db4d63fc1ae513335b751beb8f89e1eed61871c2 (diff) | |
download | wallabag-9c545fe028013b30417c1a932cd6b9027bff752d.tar.gz wallabag-9c545fe028013b30417c1a932cd6b9027bff752d.tar.zst wallabag-9c545fe028013b30417c1a932cd6b9027bff752d.zip |
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
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/DeveloperController.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/DeveloperController.php b/src/Wallabag/CoreBundle/Controller/DeveloperController.php index d85ba5ee..1ea220e5 100644 --- a/src/Wallabag/CoreBundle/Controller/DeveloperController.php +++ b/src/Wallabag/CoreBundle/Controller/DeveloperController.php | |||
@@ -49,12 +49,13 @@ class DeveloperController extends Controller | |||
49 | 49 | ||
50 | $this->get('session')->getFlashBag()->add( | 50 | $this->get('session')->getFlashBag()->add( |
51 | 'notice', | 51 | 'notice', |
52 | 'flashes.developer.notice.client_created' | 52 | $this->get('translator')->trans('flashes.developer.notice.client_created', array('%name%' => $client->getName())) |
53 | ); | 53 | ); |
54 | 54 | ||
55 | return $this->render('WallabagCoreBundle:Developer:client_parameters.html.twig', [ | 55 | return $this->render('WallabagCoreBundle:Developer:client_parameters.html.twig', [ |
56 | 'client_id' => $client->getPublicId(), | 56 | 'client_id' => $client->getPublicId(), |
57 | 'client_secret' => $client->getSecret(), | 57 | 'client_secret' => $client->getSecret(), |
58 | 'client_name' => $client->getName(), | ||
58 | ]); | 59 | ]); |
59 | } | 60 | } |
60 | 61 | ||
@@ -80,7 +81,7 @@ class DeveloperController extends Controller | |||
80 | 81 | ||
81 | $this->get('session')->getFlashBag()->add( | 82 | $this->get('session')->getFlashBag()->add( |
82 | 'notice', | 83 | 'notice', |
83 | 'flashes.developer.notice.client_deleted' | 84 | $this->get('translator')->trans('flashes.developer.notice.client_deleted', array('%name%' => $client->getName())) |
84 | ); | 85 | ); |
85 | 86 | ||
86 | return $this->redirect($this->generateUrl('developer')); | 87 | return $this->redirect($this->generateUrl('developer')); |