add doc (#35168)
* add doc * add doc * add doc * add doc * add doc * add doc * add doc
This commit is contained in:
parent
d8ec14bc46
commit
bc92afe403
2 changed files with 32 additions and 18 deletions
|
|
@ -2814,12 +2814,6 @@ parameters:
|
|||
count: 1
|
||||
path: ../../../htdocs/comm/action/index.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$theme_datacolor might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 1
|
||||
path: ../../../htdocs/comm/action/index.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$socid might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2003 Eric Seigne <erics@rycks.com>
|
||||
* Copyright (C) 2004-2018 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
||||
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
|
||||
* Copyright (C) 2014 Cedric GROSS <c.gross@kreiz-it.fr>
|
||||
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
|
||||
* Copyright (C) 2017 Open-DSI <support@open-dsi.fr>
|
||||
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2003 Eric Seigne <erics@rycks.com>
|
||||
* Copyright (C) 2004-2018 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
||||
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
|
||||
* Copyright (C) 2014 Cedric GROSS <c.gross@kreiz-it.fr>
|
||||
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
|
||||
* Copyright (C) 2017 Open-DSI <support@open-dsi.fr>
|
||||
* Copyright (C) 2021-2025 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2024-2025 MDW <mdeweerd@users.noreply.github.com>
|
||||
*
|
||||
|
|
@ -1580,15 +1580,30 @@ $maxnbofchar = 0;
|
|||
$cachethirdparties = array();
|
||||
$cachecontacts = array();
|
||||
$cacheusers = array();
|
||||
// default values
|
||||
$theme_datacolor = array(
|
||||
array(137, 86, 161),
|
||||
array(60, 147, 183),
|
||||
array(250, 190, 80),
|
||||
array(80, 166, 90),
|
||||
array(190, 190, 100),
|
||||
array(91, 115, 247),
|
||||
array(140, 140, 220),
|
||||
array(190, 120, 120),
|
||||
array(115, 125, 150),
|
||||
array(100, 170, 20),
|
||||
array(150, 135, 125),
|
||||
array(85, 135, 150),
|
||||
array(150, 135, 80),
|
||||
array(150, 80, 150)
|
||||
);
|
||||
|
||||
// Define theme_datacolor array
|
||||
$color_file = DOL_DOCUMENT_ROOT."/theme/".$conf->theme."/theme_vars.inc.php";
|
||||
if (is_readable($color_file)) {
|
||||
global $theme_datacolor;
|
||||
include $color_file;
|
||||
/** @var array<int,mixed> $theme_datacolor */
|
||||
}
|
||||
if (!is_array($theme_datacolor)) {
|
||||
$theme_datacolor = array(array(137, 86, 161), array(60, 147, 183), array(250, 190, 80), array(80, 166, 90), array(190, 190, 100), array(91, 115, 247), array(140, 140, 220), array(190, 120, 120), array(115, 125, 150), array(100, 170, 20), array(150, 135, 125), array(85, 135, 150), array(150, 135, 80), array(150, 80, 150));
|
||||
/** @var array<int,mixed> $theme_datacolor */
|
||||
}
|
||||
|
||||
$massactionbutton = '';
|
||||
|
|
@ -1911,6 +1926,11 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa
|
|||
'@phan-var-force array{0:array{0:int,1:int,2:int},1:array{0:int,1:int,2:int},2:array{0:int,1:int,2:int},3:array{0:int,1:int,2:int}} $theme_datacolor
|
||||
@phan-var-force User[] $cacheusers
|
||||
@phan-var-force array<int<0,3>> $colorindexused';
|
||||
/**
|
||||
* @var array{0:array{0:int,1:int,2:int},1:array{0:int,1:int,2:int},2:array{0:int,1:int,2:int},3:array{0:int,1:int,2:int}} $theme_datacolor
|
||||
* @var User[] $cacheusers
|
||||
* @var array<int<0,3>> $colorindexused
|
||||
*/
|
||||
|
||||
if ($conf->use_javascript_ajax) { // Enable the "Show more button..."
|
||||
$conf->global->MAIN_JS_SWITCH_AGENDA = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue