hooks/boardIndexStatusUpdates_X.php
Zmień:
<?php
class boardIndexStatusUpdates
{
protected $hookGateway;
public function __construct()
{
$registry = ipsRegistry::instance();
$classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'members' ) . '/sources/classes/hooks/gateway.php', 'members_hookGateway', 'members' );
$this->hookGateway = new $classToLoad( $registry );
}
public function getOutput()
{
return $this->hookGateway->statusUpdates();
}
}
Na:
<?php
class boardIndexStatusUpdates
{
protected $hookGateway;
public function __construct()
{
$registry = ipsRegistry::instance();
$this -> member = $registry -> member() -> fetchMemberData();
$classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'members' ) . '/sources/classes/hooks/gateway.php', 'members_hookGateway', 'members' );
$this->hookGateway = new $classToLoad( $registry );
}
public function getOutput()
{
if(!$this -> member['member_id']){
return false;
}
return $this->hookGateway->statusUpdates();
}
}