2
0
forked from Wavyzz/dolibarr

fix phpstan doc ui

This commit is contained in:
Frédéric France
2024-11-23 10:53:07 +01:00
parent f3abc3825f
commit a5dde7fe83
2 changed files with 8 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
<?php
/* 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
* it under the terms of the GNU General Public License as published by
@@ -57,6 +58,7 @@ class Documentation
* Constructor
*
* @param DoliDB $db Database handler
* @return void
*/
public function __construct(DoliDB $db)
{
@@ -224,6 +226,7 @@ class Documentation
/**
* Output sidebar
*
* @return void
*/
public function showSidebar()
@@ -320,6 +323,7 @@ class Documentation
public function showSummary($showsubmenu = 1, $showsubmenu_summary = 1)
{
$i = 0;
$menu_entry = [];
if (!empty($this->view)) :
// On se place au bon niveau
foreach ($this->view as $view) {

View File

@@ -40,7 +40,9 @@ if ($user->socid > 0) {
$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
//--------