1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-22 07:20:11 +02:00

[ticket/11150] CS

PHPBB3-11150
This commit is contained in:
Tristan Darricau 2015-09-18 09:33:44 +02:00 committed by Tristan Darricau
parent 8b96fc7d04
commit bac391c282
No known key found for this signature in database
GPG Key ID: 817043C2E29DB881
3 changed files with 28 additions and 20 deletions

View File

@ -10,7 +10,7 @@
<div class="errorbox"> <div class="errorbox">
{{ lang('EXTENSIONS_COMPOSER_NOT_WRITABLE') }} {{ lang('EXTENSIONS_COMPOSER_NOT_WRITABLE') }}
</div> </div>
{% endif %} {% endif %}I
<fieldset class="quick quick-left"> <fieldset class="quick quick-left">
<span class="small"><a href="https://www.phpbb.com/go/customise/extensions/3.1" target="_blank">{{ lang('BROWSE_EXTENSIONS_DATABASE') }}</a> &bull; <a href="javascript:phpbb.toggleDisplay('catalog_settings');">{{ lang('SETTINGS') }}</a></span> <span class="small"><a href="https://www.phpbb.com/go/customise/extensions/3.1" target="_blank">{{ lang('BROWSE_EXTENSIONS_DATABASE') }}</a> &bull; <a href="javascript:phpbb.toggleDisplay('catalog_settings');">{{ lang('SETTINGS') }}</a></span>

View File

@ -658,19 +658,21 @@ class acp_extensions
$this->page_title = 'ACP_EXTENSIONS_CATALOG'; $this->page_title = 'ACP_EXTENSIONS_CATALOG';
$this->tpl_name = 'acp_ext_catalog'; $this->tpl_name = 'acp_ext_catalog';
$this->template->assign_var('extensions', $extensions); $this->template->assign_vars([
$this->template->assign_var('managed_extensions', array_keys($managed_packages)); 'enabled' => $manager->check_requirements(),
$this->template->assign_var('installed_extensions', array_keys($extensions_manager->all_available())); 'extensions' => $extensions,
$this->template->assign_var('U_ACTION', $this->u_action); 'managed_extensions' => array_keys($managed_packages),
$this->template->assign_var('settings', [ 'installed_extensions' => array_keys($extensions_manager->all_available()),
'U_ACTION' => $this->u_action,
'settings' => [
'enable_packagist' => $this->config['exts_composer_packagist'], 'enable_packagist' => $this->config['exts_composer_packagist'],
'enable_on_install' => $this->config['exts_composer_enable_on_install'], 'enable_on_install' => $this->config['exts_composer_enable_on_install'],
'purge_on_remove' => $this->config['exts_composer_purge_on_remove'], 'purge_on_remove' => $this->config['exts_composer_purge_on_remove'],
'minimum_stability' => $this->config['exts_composer_minimum_stability'], 'minimum_stability' => $this->config['exts_composer_minimum_stability'],
'stabilities' => array_keys(\Composer\Package\BasePackage::$stabilities), 'stabilities' => array_keys(\Composer\Package\BasePackage::$stabilities),
'repositories' => json_decode($this->config['exts_composer_repositories'], true), 'repositories' => json_decode($this->config['exts_composer_repositories'], true),
],
]); ]);
$this->template->assign_var('enabled', $manager->check_requirements());
add_form_key('catalog_settings'); add_form_key('catalog_settings');

View File

@ -1,15 +1,21 @@
<?php <?php
/** /**
* Created by IntelliJ IDEA. *
* User: tristan.darricau * This file is part of the phpBB Forum Software package.
* Date: 09/09/15 *
* Time: 23:12 * @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/ */
namespace phpbb\composer; namespace phpbb\composer;
use Composer\IO\IOInterface; use Composer\IO\IOInterface;
use phpbb\composer\exception\runtime_exception; use phpbb\composer\exception\runtime_exception;
/** /**
* Class to manage packages through composer. * Class to manage packages through composer.
*/ */