phpBB

Code Changes

File: includes/acp/acp_main.php

  Unmodified   Added   Modified   Removed
Line 429Line 429
			));
}


			));
}


 
		if ($auth->acl_get('a_board'))
{

		$version_helper = $phpbb_container->get('version_helper');
try
{

		$version_helper = $phpbb_container->get('version_helper');
try
{

Line 443Line 445
				'S_VERSIONCHECK_FAIL'		=> true,
'VERSIONCHECK_FAIL_REASON' => ($e->getMessage() !== $user->lang('VERSIONCHECK_FAIL')) ? $e->getMessage() : '',
));

				'S_VERSIONCHECK_FAIL'		=> true,
'VERSIONCHECK_FAIL_REASON' => ($e->getMessage() !== $user->lang('VERSIONCHECK_FAIL')) ? $e->getMessage() : '',
));

 
			}
}
else
{
// We set this template var to true, to not display an outdated version notice.
$template->assign_var('S_VERSION_UP_TO_DATE', true);
}

// Incomplete update?
if (phpbb_version_compare($config['version'], PHPBB_VERSION, '<'))
{
$template->assign_var('S_UPDATE_INCOMPLETE', true);

		}

/**

		}

/**

Line 553Line 567
			'U_VERSIONCHECK'	=> append_sid("{$phpbb_admin_path}index.$phpEx", 'i=update&amp;mode=version_check'),
'U_VERSIONCHECK_FORCE' => append_sid("{$phpbb_admin_path}index.$phpEx", 'versioncheck_force=1'),


			'U_VERSIONCHECK'	=> append_sid("{$phpbb_admin_path}index.$phpEx", 'i=update&amp;mode=version_check'),
'U_VERSIONCHECK_FORCE' => append_sid("{$phpbb_admin_path}index.$phpEx", 'versioncheck_force=1'),


 
			'S_VERSIONCHECK'	=> ($auth->acl_get('a_board')) ? true : false,

			'S_ACTION_OPTIONS'	=> ($auth->acl_get('a_board')) ? true : false,
'S_FOUNDER' => ($user->data['user_type'] == USER_FOUNDER) ? true : false,
)

			'S_ACTION_OPTIONS'	=> ($auth->acl_get('a_board')) ? true : false,
'S_FOUNDER' => ($user->data['user_type'] == USER_FOUNDER) ? true : false,
)

Line 632Line 647
		{
$error = false;
$search_type = $config['search_type'];

		{
$error = false;
$search_type = $config['search_type'];

			$search = new $search_type($error, $phpbb_root_path, $phpEx, $auth, $config, $db, $user);

			$search = new $search_type($error, $phpbb_root_path, $phpEx, $auth, $config, $db, $user, $phpbb_dispatcher);


if (!$search->index_created())
{


if (!$search->index_created())
{