mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-01 20:43:52 +01:00
Always pass the actual request to the data controller.
This commit is contained in:
@@ -58,6 +58,15 @@ class DataController
|
||||
$format = $this->getInput('format', 'geojson');
|
||||
$type = $this->getInput('type', 'layer');
|
||||
$dataId = $this->getInput('id');
|
||||
$page = \Input::get('page', true);
|
||||
|
||||
if ($page) {
|
||||
// Fake a page request.
|
||||
\Environment::set('request', base64_decode($page));
|
||||
|
||||
// We need the auto_item being set. So call the getPageIdFromUrl method, this does it internally.
|
||||
\Frontend::getPageIdFromUrl();
|
||||
}
|
||||
|
||||
try {
|
||||
list($data, $error) = $this->loadData($type, $dataId);
|
||||
|
||||
Reference in New Issue
Block a user