$geomform->geom_title->setValue($path->title);
} else {
$geomform->setAction('path');
- $clientip = trim(end(split(',', $this->getRequest()->getClientIp(true))));
- $extent = new phptojs\JsObject('gMaxExtent', $this->_helper->syjGeoip($clientip));
+ $extent = new phptojs\JsObject('gMaxExtent', $this->_helper->syjGeoip($this->getRequest()->getClientIp(true)));
$this->view->headScript()->prependScript((string) $extent);
$title = "Show your journey";
}
throw new Syj_Exception_Request();
}
$path->creator = $user;
- $path->creatorIp = trim(end(split(',', $this->getRequest()->getClientIp(true))));
+ $path->creatorIp = $this->getRequest()->getClientIp(true);
$this->save($path, $formData);
$data = array('redirect' => "idx/" . (string)$path->id);