Debug IP address parameter

Added a debug IP Address to be used when working locally for example.
Also handled a PHP warning in case nothing was returned by getFreegeoip() function
The other option would be to filter the data at the source, when saving the parameter value by adding a filter value on the parameter declaration. 
<input type="text" filter="cmd"...

http://stackoverflow.com/questions/18260503/what-are-possible-fields-filters-in-joomla-module-parameters

Jeremy Magne
http://www.daycounts.com

> Le 2014-09-23 à 19:55, Matt Thomas <notifications@github.com> a écrit :
> 
> In freegeoip.php:
> 
> > @@ -55,10 +55,13 @@ function onAfterInitialise()
> >  	 */
> >  	private function getFreegeoip()
> >  	{
> > +		$debug_ip = $this->params->get('debug_ip');
> I'd prefer to escape this parameter as the input is text, so I'd change it to htmlspecialchars($this->params->get('debug_ip'));
> 
> —
> Reply to this email directly or view it on GitHub.