Removed silly code
This commit is contained in:
parent
7681c60f6b
commit
cd684460ff
@ -508,7 +508,7 @@ class Categorie
|
|||||||
include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
|
include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
|
||||||
$interface=new Interfaces($this->db);
|
$interface=new Interfaces($this->db);
|
||||||
$result=$interface->run_triggers('CATEGORY_UNLINK',$this,$user,$langs,$conf);
|
$result=$interface->run_triggers('CATEGORY_UNLINK',$this,$user,$langs,$conf);
|
||||||
if ($result < 0) { $error++; $this->errors=$interface->errors; $this->error=$this->error; }
|
if ($result < 0) { $error++; $this->errors=$interface->errors; }
|
||||||
// Fin appel triggers
|
// Fin appel triggers
|
||||||
|
|
||||||
if (! $error) return 1;
|
if (! $error) return 1;
|
||||||
|
|||||||
@ -97,7 +97,6 @@ class FormFile
|
|||||||
$max=$conf->global->MAIN_UPLOAD_DOC; // En Kb
|
$max=$conf->global->MAIN_UPLOAD_DOC; // En Kb
|
||||||
$maxphp=@ini_get('upload_max_filesize'); // En inconnu
|
$maxphp=@ini_get('upload_max_filesize'); // En inconnu
|
||||||
if (preg_match('/m$/i',$maxphp)) $maxphp=$maxphp*1024;
|
if (preg_match('/m$/i',$maxphp)) $maxphp=$maxphp*1024;
|
||||||
if (preg_match('/k$/i',$maxphp)) $maxphp=$maxphp;
|
|
||||||
// Now $max and $maxphp are in Kb
|
// Now $max and $maxphp are in Kb
|
||||||
if ($maxphp > 0) $max=min($max,$maxphp);
|
if ($maxphp > 0) $max=min($max,$maxphp);
|
||||||
|
|
||||||
|
|||||||
@ -290,7 +290,6 @@ abstract class ActionsCardCommon
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->object->id = $this->object->id;
|
|
||||||
$reload = 0;
|
$reload = 0;
|
||||||
$this->errors = $this->object->errors;
|
$this->errors = $this->object->errors;
|
||||||
$action = "edit";
|
$action = "edit";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user