mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-11 10:05:19 +02:00
[ticket/13740] Check navigation requirements
PHPBB3-13740
This commit is contained in:
parent
3a3dd94145
commit
3d4f21c1f8
@ -19,6 +19,8 @@ services:
|
|||||||
|
|
||||||
installer.navigation.install_navigation:
|
installer.navigation.install_navigation:
|
||||||
class: phpbb\install\helper\navigation\install_navigation
|
class: phpbb\install\helper\navigation\install_navigation
|
||||||
|
arguments:
|
||||||
|
- @installer.helper.install_helper
|
||||||
scope: prototype
|
scope: prototype
|
||||||
tags:
|
tags:
|
||||||
- { name: installer.navigation }
|
- { name: installer.navigation }
|
||||||
|
@ -13,10 +13,35 @@
|
|||||||
|
|
||||||
namespace phpbb\install\helper\navigation;
|
namespace phpbb\install\helper\navigation;
|
||||||
|
|
||||||
|
use phpbb\install\helper\install_helper;
|
||||||
|
|
||||||
class install_navigation implements navigation_interface
|
class install_navigation implements navigation_interface
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var install_helper
|
||||||
|
*/
|
||||||
|
private $install_helper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param install_helper $install_helper
|
||||||
|
*/
|
||||||
|
public function __construct(install_helper $install_helper)
|
||||||
|
{
|
||||||
|
$this->install_helper = $install_helper;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public function get()
|
public function get()
|
||||||
{
|
{
|
||||||
|
if ($this->install_helper->is_phpbb_installed())
|
||||||
|
{
|
||||||
|
return array();
|
||||||
|
}
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'install' => array(
|
'install' => array(
|
||||||
'label' => 'INSTALL',
|
'label' => 'INSTALL',
|
||||||
|
@ -15,6 +15,9 @@ namespace phpbb\install\helper\navigation;
|
|||||||
|
|
||||||
class main_navigation implements navigation_interface
|
class main_navigation implements navigation_interface
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public function get()
|
public function get()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user