mirror of
https://github.com/friendica/friendica
synced 2025-04-23 08:30:10 +00:00
changed to this:
--------------------- function bla (App &$a) { $a->bla = 'stuff'; } --------------------- Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
be35349495
commit
fb0ed18a43
8 changed files with 16 additions and 15 deletions
|
@ -133,7 +133,7 @@
|
|||
* @hook 'logged_in'
|
||||
* array $user logged user record
|
||||
*/
|
||||
function api_login(&$a){
|
||||
function api_login(App &$a){
|
||||
// login with oauth
|
||||
try{
|
||||
$oauth = new FKOAuth1();
|
||||
|
@ -251,8 +251,8 @@
|
|||
* @param App $a
|
||||
* @return string API call result
|
||||
*/
|
||||
function api_call(&$a){
|
||||
GLOBAL $API, $called_api;
|
||||
function api_call(App &$a){
|
||||
global $API, $called_api;
|
||||
|
||||
$type="json";
|
||||
if (strpos($a->query_string, ".xml")>0) $type="xml";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue