mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
PHP5.3 compatibility.
git-svn-id: file:///svn/phpbb/trunk@8759 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -118,7 +118,7 @@ class acp_ban
|
||||
/**
|
||||
* Display ban options
|
||||
*/
|
||||
function display_ban_options($mode)
|
||||
static function display_ban_options($mode)
|
||||
{
|
||||
global $user, $db, $template;
|
||||
|
||||
|
@@ -34,6 +34,12 @@ class acp_modules
|
||||
var $module_class = '';
|
||||
var $parent_id;
|
||||
var $u_action;
|
||||
var $p_master;
|
||||
|
||||
function __construct(p_master $p_master)
|
||||
{
|
||||
$this->p_master = $p_master;
|
||||
}
|
||||
|
||||
function main($id, $mode)
|
||||
{
|
||||
@@ -624,7 +630,7 @@ class acp_modules
|
||||
if (!$ignore_acl && $row['module_auth'])
|
||||
{
|
||||
// We use zero as the forum id to check - global setting.
|
||||
if (!p_master::module_auth($row['module_auth'], 0))
|
||||
if (!$this->p_master->module_auth($row['module_auth'], 0))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user