Skip to content

Commit

Permalink
Merge pull request #9155 from frederic34/patch-19
Browse files Browse the repository at this point in the history
Update element_resource.php
  • Loading branch information
Juanjo Menent committed Aug 2, 2018
2 parents 929d8fa + cddb82f commit f93519b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions htdocs/resource/element_resource.php
Expand Up @@ -23,11 +23,7 @@
*/


$res=0;
$res=@include("../main.inc.php"); // For root directory
if (! $res) $res=@include("../../main.inc.php"); // For "custom" directory
if (! $res) die("Include of main fails");

require '../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/resource/class/dolresource.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
require_once DOL_DOCUMENT_ROOT.'/fichinter/class/fichinter.class.php';
Expand Down

0 comments on commit f93519b

Please sign in to comment.