X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FController%2FStaticController.php;h=318af303c361bda37acf27e06176560dadc64ced;hb=f808b01692a835673f328d7221ba8c212caa9b61;hp=9ada371b1c0a8f57e80072df6950a8564b8579bb;hpb=1930c19d8214c05ceefac5ac011a6b6e7e4a983d;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Controller/StaticController.php b/src/Wallabag/CoreBundle/Controller/StaticController.php index 9ada371b..318af303 100644 --- a/src/Wallabag/CoreBundle/Controller/StaticController.php +++ b/src/Wallabag/CoreBundle/Controller/StaticController.php @@ -12,9 +12,13 @@ class StaticController extends Controller */ public function howtoAction() { + $addonsUrl = $this->container->getParameter('addons_url'); + return $this->render( - 'WallabagCoreBundle:Static:howto.html.twig', - array() + '@WallabagCore/themes/common/Static/howto.html.twig', + [ + 'addonsUrl' => $addonsUrl, + ] ); } @@ -24,8 +28,11 @@ class StaticController extends Controller public function aboutAction() { return $this->render( - 'WallabagCoreBundle:Static:about.html.twig', - array() + '@WallabagCore/themes/common/Static/about.html.twig', + [ + 'version' => $this->getParameter('wallabag_core.version'), + 'paypal_url' => $this->getParameter('wallabag_core.paypal_url'), + ] ); } @@ -35,8 +42,7 @@ class StaticController extends Controller public function quickstartAction() { return $this->render( - 'WallabagCoreBundle:Static:quickstart.html.twig', - array() + '@WallabagCore/themes/common/Static/quickstart.html.twig' ); } }