Cound not change the "server" (url) configuration option #1

Closed
Cyrille37 opened this Issue Jan 6, 2012 · 2 comments

Projects

None yet

2 participants

@Cyrille37

Hi,
It seems that we could not change the server (url).

When I do :

$osm = new Services_Openstreetmap(
array(
'server' => 'http://api06.dev.openstreetmap.org/',
'verbose' => true,
)
);

Then future request will use the default server url (http://api.openstreetmap.org/), nore the one passed in the constructor configuration option.

Cheers
Cyrille.

@Cyrille37

A simple correction is a minor change in Services_Openstreetmap_Config::serValue()

Change :
case 'server':
$this->setServer($value);
break;
To :
case 'server':
$this->config[$key] = $value;
$this->setServer($value);
break;

@kenguest kenguest was assigned Jan 19, 2012
@kenguest kenguest added a commit that referenced this issue Jan 20, 2012
@kenguest fix for issue #1 as reported on github - Could not change the 'server…
…' (url) configuration option.
3f5390f
@kenguest
Owner

Thanks for reporting the problem @Cyrille37 - it's fixed now.

@kenguest kenguest closed this Jan 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment