]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Controller/AbstractController.php
Drop edit function
[airbundle] / Controller / AbstractController.php
index 8a10b87681016db671bb194fe15da59d4573585a..f06178d77b834dd93b435cf3614e021976b00f6b 100644 (file)
@@ -509,6 +509,18 @@ abstract class AbstractController extends BaseAbstractController implements Serv
                        }*/
                }
 
                        }*/
                }
 
+               //With empty locations link
+               if (empty($parameters['locations_link'])) {
+                       //Set locations link
+                       $parameters['locations_link'] = $this->router->generate('rapsys_air_location');
+               }
+
+               //With empty locations title
+               if (empty($parameters['locations_title'])) {
+                       //Set locations title
+                       $parameters['locations_title'] = $this->translator->trans('Locations', [], null, $this->locale);
+               }
+
                //With canonical
                if (!empty($parameters['canonical'])) {
                        //Set facebook url
                //With canonical
                if (!empty($parameters['canonical'])) {
                        //Set facebook url