Add accessor for App->args in App and BaseModule
This commit is contained in:
@@ -120,7 +120,7 @@ abstract class BaseModule extends BaseObject
|
||||
$a = \get_app();
|
||||
|
||||
$x = explode('.', $hash);
|
||||
if (time() > (IntVal($x[0]) + $max_livetime)) {
|
||||
if (time() > (intval($x[0]) + $max_livetime)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -155,4 +155,12 @@ abstract class BaseModule extends BaseObject
|
||||
throw new \Friendica\Network\HTTPException\ForbiddenException();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return App\Arguments
|
||||
*/
|
||||
protected static function getArgs()
|
||||
{
|
||||
return self::getApp()->getArgs();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user