X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fgeocode.php;h=a0cd2fa159ff127e3b80e29377bc25af00da3235;hb=b15f5f0cafc08c9b63090c5b4f7494fca0634238;hp=e883c6ce4162950a4d0b0e23842cb78bbe015741;hpb=7ebd13fa69d2a5dac8bc59799281d3d6e017eeae;p=quix0rs-gnu-social.git diff --git a/actions/geocode.php b/actions/geocode.php index e883c6ce41..a0cd2fa159 100644 --- a/actions/geocode.php +++ b/actions/geocode.php @@ -37,6 +37,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { * @category Action * @package StatusNet * @author Craig Andrews + * @copyright 2009 Free Software Foundation, Inc http://www.fsf.org * @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3 * @link http://status.net/ */ @@ -46,11 +47,12 @@ class GeocodeAction extends Action var $lon = null; var $location = null; - function prepare($args) + function prepare(array $args=array()) { parent::prepare($args); $token = $this->trimmed('token'); if (!$token || $token != common_session_token()) { + // TRANS: Client error displayed when the session token does not match or is not given. $this->clientError(_('There was a problem with your session token. '. 'Try again, please.')); } @@ -67,8 +69,8 @@ class GeocodeAction extends Action * * @return nothing * - **/ - function handle($args) + */ + function handle(array $args=array()) { header('Content-Type: application/json; charset=utf-8'); $location_object = array(); @@ -88,8 +90,7 @@ class GeocodeAction extends Action * * @return boolean true */ - - function isReadOnly($args) + function isReadOnly(array $args=array()) { return true; }