// that anonymous faving is allowed for all users.
public $restricted = array();
- function onArgsInitialize() {
+ function onArgsInitialize(array &$args) {
// We always want a session because we're tracking anon users
common_ensure_session();
}
// 0.1 will check about 10% of hits, etc.
public $frequency = 1.0;
- function onArgsInitialize($args)
+ function onArgsInitialize(array &$args)
{
if (isset($args['action'])) {
$action = strtolower($args['action']);
return parent::onAutoload($cls);
}
- function onArgsInitialize(&$args)
+ function onArgsInitialize(array &$args)
{
if($this->takeOverLogin && $args['action'] == 'login')
{
const CONFIRMTYPE = 'register';
- function onArgsInitialize(&$args)
+ function onArgsInitialize(array &$args)
{
if (array_key_exists('action', $args) && $args['action'] == 'register') {
// YOINK!
*
* @return boolean hook return
*/
- function onArgsInitialize($args)
+ function onArgsInitialize(array &$args)
{
if (common_config('site', 'openidonly')) {
if (array_key_exists('action', $args)) {
*/
public $dir=false;
- public function onArgsInitialize(&$args)
+ public function onArgsInitialize(array &$args)
{
if (isset($_SERVER['REQUEST_METHOD']) &&
$_SERVER['REQUEST_METHOD'] == 'POST') {
}
// Take over the default... :D
- function onArgsInitialize($args)
+ function onArgsInitialize(array &$args)
{
if (array_key_exists('action', $args)) {
$action = trim($args['action']);
parent::__construct();
}
- function onArgsInitialize($args)
+ function onArgsInitialize(array &$args)
{
$path = common_config('site', 'path');
if (GNUsocial::useHTTPS() && ($path == '/' || mb_strlen($path)==0 )) {