Moved shareLocation preference check to Profile class

This commit is contained in:
Mikael Nordfeldth
2013-10-06 13:38:09 +02:00
parent cc34bb48c7
commit 78f9629bf3
9 changed files with 42 additions and 44 deletions

View File

@@ -140,7 +140,7 @@ class ApiAction extends Action
*
* @return boolean false if user doesn't exist
*/
function prepare($args)
protected function prepare(array $args=array())
{
StatusNet::setApi(true); // reduce exception reports to aid in debugging
parent::prepare($args);
@@ -172,10 +172,10 @@ class ApiAction extends Action
*
* @return void
*/
function handle($args)
protected function handle()
{
header('Access-Control-Allow-Origin: *');
parent::handle($args);
parent::handle();
}
/**