mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-21 23:13:43 +02:00
[ticket/11150] CS
PHPBB3-11150
This commit is contained in:
parent
8b96fc7d04
commit
bac391c282
@ -2,15 +2,15 @@
|
|||||||
|
|
||||||
<a id="maincontent"></a>
|
<a id="maincontent"></a>
|
||||||
|
|
||||||
<h1>{{lang( 'EXTENSIONS_CATALOG') }}</h1>
|
<h1>{{ lang( 'EXTENSIONS_CATALOG') }}</h1>
|
||||||
|
|
||||||
<p>{{lang( 'EXTENSIONS_CATALOG_EXPLAIN') }}</p>
|
<p>{{ lang( 'EXTENSIONS_CATALOG_EXPLAIN') }}</p>
|
||||||
|
|
||||||
{% if not enabled %}
|
{% if not enabled %}
|
||||||
<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> • <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> • <a href="javascript:phpbb.toggleDisplay('catalog_settings');">{{ lang('SETTINGS') }}</a></span>
|
||||||
|
@ -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()),
|
||||||
'enable_packagist' => $this->config['exts_composer_packagist'],
|
'U_ACTION' => $this->u_action,
|
||||||
'enable_on_install' => $this->config['exts_composer_enable_on_install'],
|
'settings' => [
|
||||||
'purge_on_remove' => $this->config['exts_composer_purge_on_remove'],
|
'enable_packagist' => $this->config['exts_composer_packagist'],
|
||||||
'minimum_stability' => $this->config['exts_composer_minimum_stability'],
|
'enable_on_install' => $this->config['exts_composer_enable_on_install'],
|
||||||
'stabilities' => array_keys(\Composer\Package\BasePackage::$stabilities),
|
'purge_on_remove' => $this->config['exts_composer_purge_on_remove'],
|
||||||
'repositories' => json_decode($this->config['exts_composer_repositories'], true),
|
'minimum_stability' => $this->config['exts_composer_minimum_stability'],
|
||||||
|
'stabilities' => array_keys(\Composer\Package\BasePackage::$stabilities),
|
||||||
|
'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');
|
||||||
|
|
||||||
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user