* @category Action
* @package StatusNet
* @author Craig Andrews <candrews@integralblue.com>
+ * @copyright 2009 Free Software Foundation, Inc http://www.fsf.org
* @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
* @link http://status.net/
*/
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.'));
}
*
* @return nothing
*
- **/
- function handle($args)
+ */
+ function handle()
{
header('Content-Type: application/json; charset=utf-8');
$location_object = array();
*
* @return boolean true
*/
-
function isReadOnly($args)
{
return true;