Move function colorIsLight into functions.lib.php

Fix scrutinizer bugs.
This commit is contained in:
Laurent Destailleur
2017-10-16 09:29:10 +02:00
parent afdc176f47
commit 87814af7b6
12 changed files with 99 additions and 92 deletions

View File

@@ -256,9 +256,11 @@ class Documents extends DolibarrApi
// Define $uploadir
$object = null;
$entity = $user->entity;
$entity = DolibarrApiAccess::$user->entity;
if ($ref)
{
$tmpreldir='';
if ($modulepart == 'facture' || $modulepart == 'invoice')
{
$modulepart='facture';