|
@@ 281-285 (lines=5) @@
|
| 278 |
|
|
| 279 |
|
// reload **all** JS routes |
| 280 |
|
$result = $routeDumperHelper->dumpJsRoutes(); |
| 281 |
|
if ($result == '') { |
| 282 |
|
$this->addFlash('status', $this->__f('Done! Exposed JS Routes dumped to %s.', ['%s' => 'web/js/fos_js_routes.js'])); |
| 283 |
|
} else { |
| 284 |
|
$this->addFlash('error', $this->__f('Error! There was an error dumping exposed JS Routes: %s', ['%s' => $result])); |
| 285 |
|
} |
| 286 |
|
|
| 287 |
|
return $this->redirectToRoute('zikularoutesmodule_route_adminview'); |
| 288 |
|
} |
|
@@ 422-426 (lines=5) @@
|
| 419 |
|
$routeDumperHelper = $this->get('zikula_routes_module.route_dumper_helper'); |
| 420 |
|
$result = $routeDumperHelper->dumpJsRoutes($lang); |
| 421 |
|
|
| 422 |
|
if ($result == '') { |
| 423 |
|
$this->addFlash('status', $this->__f('Done! Exposed JS Routes dumped to %s.', ['%s' => 'web/js/fos_js_routes.js'])); |
| 424 |
|
} else { |
| 425 |
|
$this->addFlash('error', $this->__f('Error! There was an error dumping exposed JS Routes: %s', ['%s' => $result])); |
| 426 |
|
} |
| 427 |
|
|
| 428 |
|
return $this->redirectToRoute('zikularoutesmodule_route_adminview'); |
| 429 |
|
} |