phpBB

Code Changes

File: includes/functions_module.php

  Unmodified   Added   Modified   Removed
Line 480Line 480
	*/
function set_active($id = false, $mode = false)
{

	*/
function set_active($id = false, $mode = false)
{

		global $request;

		global $auth, $request, $user;


$icat = false;
$this->active_module = false;


$icat = false;
$this->active_module = false;

Line 500Line 500
		if ($id && !is_numeric($id) && !$this->is_full_class($id))
{
$id = $this->p_class . '_' . $id;

		if ($id && !is_numeric($id) && !$this->is_full_class($id))
{
$id = $this->p_class . '_' . $id;

 
		}

// Fallback to acp main page for special restore permission mode
if ($user->data['user_perm_from'] && $auth->acl_get('a_switchperm'))
{
$id = '';
$mode = '';
$icat = false;

		}

$category = false;

		}

$category = false;