mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/11150] Gallery => Catalog
PHPBB3-11150
This commit is contained in:
committed by
Tristan Darricau
parent
963eea33a9
commit
38a58df41b
@@ -60,8 +60,8 @@ class acp_extensions
|
||||
|
||||
switch ($mode)
|
||||
{
|
||||
case 'gallery':
|
||||
$this->gallery_mode($id, $mode);
|
||||
case 'catalog':
|
||||
$this->catalog_mode($id, $mode);
|
||||
break;
|
||||
default:
|
||||
$this->main_mode($id, $mode);
|
||||
@@ -177,7 +177,7 @@ class acp_extensions
|
||||
'FORCE_UNSTABLE' => $this->config['extension_force_unstable'],
|
||||
'U_ACTION' => $this->u_action,
|
||||
'MANAGED_EXTENSIONS' => array_keys($composer_manager->get_managed_packages()),
|
||||
'U_GALLERY_ACTION' => append_sid("{$phpbb_admin_path}index.$phpEx", "i=$id&mode=gallery"),
|
||||
'U_CATALOG_ACTION' => append_sid("{$phpbb_admin_path}index.$phpEx", "i=$id&mode=catalog"),
|
||||
));
|
||||
$this->request->disable_super_globals();
|
||||
|
||||
@@ -409,7 +409,7 @@ class acp_extensions
|
||||
$this->tpl_name = $tpl_name;
|
||||
}
|
||||
|
||||
public function gallery_mode($id, $mode)
|
||||
public function catalog_mode($id, $mode)
|
||||
{
|
||||
global $phpbb_container;
|
||||
|
||||
@@ -593,7 +593,7 @@ class acp_extensions
|
||||
$submit = $this->request->is_set('update');
|
||||
if ($submit)
|
||||
{
|
||||
if (!check_form_key('gallery_settings'))
|
||||
if (!check_form_key('catalog_settings'))
|
||||
{
|
||||
trigger_error($language->lang('FORM_INVALID') . adm_back_link($this->u_action), E_USER_WARNING);
|
||||
}
|
||||
@@ -640,8 +640,8 @@ class acp_extensions
|
||||
|
||||
$pagination->generate_template_pagination($base_url, 'pagination', 'start', count($available_extensions), 20, $start);
|
||||
|
||||
$this->page_title = 'ACP_EXTENSIONS_GALLERY';
|
||||
$this->tpl_name = 'acp_ext_gallery';
|
||||
$this->page_title = 'ACP_EXTENSIONS_CATALOG';
|
||||
$this->tpl_name = 'acp_ext_catalog';
|
||||
|
||||
$this->template->assign_var('extensions', $extensions);
|
||||
$this->template->assign_var('managed_extensions', array_keys($managed_packages));
|
||||
@@ -655,7 +655,7 @@ class acp_extensions
|
||||
]);
|
||||
$this->template->assign_var('enabled', $manager->check_requirements());
|
||||
|
||||
add_form_key('gallery_settings');
|
||||
add_form_key('catalog_settings');
|
||||
|
||||
break;
|
||||
}
|
||||
|
@@ -20,7 +20,7 @@ class acp_extensions_info
|
||||
'title' => 'ACP_EXTENSION_MANAGEMENT',
|
||||
'modes' => array(
|
||||
'main' => array('title' => 'ACP_EXTENSIONS', 'auth' => 'acl_a_extensions', 'cat' => array('ACP_EXTENSION_MANAGEMENT')),
|
||||
'gallery' => array('title' => 'ACP_EXTENSIONS_GALLERY', 'auth' => 'acl_a_extensions', 'cat' => array('ACP_EXTENSION_MANAGEMENT')),
|
||||
'catalog' => array('title' => 'ACP_EXTENSIONS_CATALOG', 'auth' => 'acl_a_extensions', 'cat' => array('ACP_EXTENSION_MANAGEMENT')),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user