X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fgeocode.php;h=a0cd2fa159ff127e3b80e29377bc25af00da3235;hb=b15f5f0cafc08c9b63090c5b4f7494fca0634238;hp=123a839f563a3c101d049022b1f3190d5ce88c7c;hpb=325cb4833db7e3fd396720f12a27b880b63f4173;p=quix0rs-gnu-social.git diff --git a/actions/geocode.php b/actions/geocode.php index 123a839f56..a0cd2fa159 100644 --- a/actions/geocode.php +++ b/actions/geocode.php @@ -47,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.')); } @@ -69,7 +70,7 @@ 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(); @@ -89,7 +90,7 @@ class GeocodeAction extends Action * * @return boolean true */ - function isReadOnly($args) + function isReadOnly(array $args=array()) { return true; }