forked from Wavyzz/dolibarr
fix phpstan doc ui
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2024 Anthony Damhet <a.damhet@progiseize.fr>
|
/* Copyright (C) 2024 Anthony Damhet <a.damhet@progiseize.fr>
|
||||||
|
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -57,6 +58,7 @@ class Documentation
|
|||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param DoliDB $db Database handler
|
* @param DoliDB $db Database handler
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function __construct(DoliDB $db)
|
public function __construct(DoliDB $db)
|
||||||
{
|
{
|
||||||
@@ -224,6 +226,7 @@ class Documentation
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Output sidebar
|
* Output sidebar
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function showSidebar()
|
public function showSidebar()
|
||||||
@@ -320,6 +323,7 @@ class Documentation
|
|||||||
public function showSummary($showsubmenu = 1, $showsubmenu_summary = 1)
|
public function showSummary($showsubmenu = 1, $showsubmenu_summary = 1)
|
||||||
{
|
{
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
$menu_entry = [];
|
||||||
if (!empty($this->view)) :
|
if (!empty($this->view)) :
|
||||||
// On se place au bon niveau
|
// On se place au bon niveau
|
||||||
foreach ($this->view as $view) {
|
foreach ($this->view as $view) {
|
||||||
|
|||||||
@@ -40,7 +40,9 @@ if ($user->socid > 0) {
|
|||||||
|
|
||||||
$form = new Form($db);
|
$form = new Form($db);
|
||||||
|
|
||||||
$usedolheader = 1; // 1 = Test inside a dolibarr page, 0 = Use hard coded header
|
// 1 = Test inside a dolibarr page, 0 = Use hard coded header
|
||||||
|
// Using a dolibarr constant avoid phpstan hardcoded value always true or false
|
||||||
|
$usedolheader = getDolGlobalInt('MAIN_TEST_UI_IN_DOLIBARR_PAGE', 1);
|
||||||
|
|
||||||
// HEADER
|
// HEADER
|
||||||
//--------
|
//--------
|
||||||
|
|||||||
Reference in New Issue
Block a user