mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Fix farm_map base_path JS setting to work without clean URLs.
This commit is contained in:
parent
3ef56dde35
commit
fd867b6fbb
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ function theme_farm_map(&$vars) {
|
||||||
// We do this instead of using Drupal.settings.basePath in Javascript
|
// We do this instead of using Drupal.settings.basePath in Javascript
|
||||||
// because that variable does not take into account whether or not clean
|
// because that variable does not take into account whether or not clean
|
||||||
// URLs are enabled.
|
// URLs are enabled.
|
||||||
$settings['farm_map']['base_path'] = url('<front>');
|
$settings['farm_map']['base_path'] = str_replace('farm', '', url('farm'));
|
||||||
|
|
||||||
// Load the system of measurement, and save it to settings.
|
// Load the system of measurement, and save it to settings.
|
||||||
$system_of_measurement = farm_quantity_system_of_measurement();
|
$system_of_measurement = farm_quantity_system_of_measurement();
|
||||||
|
|
Loading…
Reference in a new issue