Skip to content
Snippets Groups Projects
Commit 329c0b29 authored by Florian Henry's avatar Florian Henry
Browse files

Fix: Missing include files.lib.php in some pages ti use

dol_delete_recursive
parent 723bad0e
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ Fix: Update impayees.php ...@@ -18,6 +18,7 @@ Fix: Update impayees.php
Fix: Link product, In list view and label product Fix: Link product, In list view and label product
Fix: visible task into area "time" for "My task" must limit task to tasks i am assigned to. Fix: visible task into area "time" for "My task" must limit task to tasks i am assigned to.
Fix: When disabled, all fields to add time into task line must be disabled. Fix: When disabled, all fields to add time into task line must be disabled.
Fix: Missing include files.lib.php in some pages ti use dol_delete_recursive
***** ChangeLog for 3.5.4 compared to 3.5.3 ***** ***** ChangeLog for 3.5.4 compared to 3.5.3 *****
Fix: Hide title of event when agenda module disabled. Fix: Hide title of event when agenda module disabled.
......
...@@ -328,6 +328,7 @@ if ($action == 'update' && ! $_POST["cancel"] && $user->rights->adherent->creer) ...@@ -328,6 +328,7 @@ if ($action == 'update' && ! $_POST["cancel"] && $user->rights->adherent->creer)
{ {
if (GETPOST('deletephoto')) if (GETPOST('deletephoto'))
{ {
require_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
$fileimg=$conf->adherent->dir_output.'/'.get_exdir($object->id,2,0,1).'/photos/'.$object->photo; $fileimg=$conf->adherent->dir_output.'/'.get_exdir($object->id,2,0,1).'/photos/'.$object->photo;
$dirthumbs=$conf->adherent->dir_output.'/'.get_exdir($object->id,2,0,1).'/photos/thumbs'; $dirthumbs=$conf->adherent->dir_output.'/'.get_exdir($object->id,2,0,1).'/photos/thumbs';
dol_delete_file($fileimg); dol_delete_file($fileimg);
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
*/ */
require '../../main.inc.php'; require '../../main.inc.php';
include_once $dolibarr_main_document_root.'/core/lib/files.lib.php'; include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
$langs->load("admin"); $langs->load("admin");
$langs->load("other"); $langs->load("other");
......
...@@ -811,6 +811,7 @@ class Contrat extends CommonObject ...@@ -811,6 +811,7 @@ class Contrat extends CommonObject
function delete($user) function delete($user)
{ {
global $conf, $langs; global $conf, $langs;
require_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
$error=0; $error=0;
......
...@@ -594,6 +594,7 @@ class Product extends CommonObject ...@@ -594,6 +594,7 @@ class Product extends CommonObject
function delete($id=0) function delete($id=0)
{ {
global $conf,$user,$langs; global $conf,$user,$langs;
require_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
$error=0; $error=0;
......
...@@ -354,6 +354,7 @@ class Task extends CommonObject ...@@ -354,6 +354,7 @@ class Task extends CommonObject
{ {
global $conf, $langs; global $conf, $langs;
require_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
$error=0; $error=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment