Move modules into modules directory

This commit is contained in:
Laurent Destailleur 2008-10-25 11:16:02 +00:00
parent b9fc7c38b3
commit 886f5374bd
3 changed files with 12 additions and 11 deletions

View File

@ -65,7 +65,7 @@ else if ($_GET["action"] == 'disable_delivery')
/*
* Affiche page
*/
$dir = DOL_DOCUMENT_ROOT."/expedition/mods/";
$dir = DOL_DOCUMENT_ROOT."/includes/modules/expedition/";
$html=new Form($db);
llxHeader("","");

View File

@ -53,7 +53,7 @@ if ($_GET["action"] == 'specimen')
//$exp->fetch_commande();
// Charge le modele
$dir = DOL_DOCUMENT_ROOT . "/expedition/mods/pdf/";
$dir = DOL_DOCUMENT_ROOT . "/includes/modules/expedition/pdf/";
$file = "pdf_expedition_".$modele.".modules.php";
if (file_exists($dir.$file))
{
@ -134,7 +134,7 @@ if ($_GET["action"] == 'setmethod' || $_GET["action"] == 'setmod')
$moduleid=$_GET["moduleid"];
$statut=$_GET["statut"];
require_once(DOL_DOCUMENT_ROOT."/expedition/mods/methode_expedition_$module.modules.php");
require_once(DOL_DOCUMENT_ROOT."/includes/modules/expedition/methode_expedition_$module.modules.php");
$class = "methode_expedition_$module";
$expem = new $class($db);
@ -208,7 +208,7 @@ if ($_GET["action"] == 'setmod')
/*
* Affiche page
*/
$dir = DOL_DOCUMENT_ROOT."/expedition/mods/";
$dir = DOL_DOCUMENT_ROOT."/includes/modules/expedition/";
$html=new Form($db);
@ -379,7 +379,7 @@ print "</tr>\n";
clearstatcache();
$dir = DOL_DOCUMENT_ROOT."/expedition/mods/pdf/";
$dir = DOL_DOCUMENT_ROOT."/includes/modules/expedition/pdf/";
if(is_dir($dir))
{

View File

@ -60,7 +60,7 @@ if ($_GET["action"] == 'specimen')
//$sending->fetch_commande();
// Charge le modele
$dir = DOL_DOCUMENT_ROOT . "/livraison/mods/pdf/";
$dir = DOL_DOCUMENT_ROOT . "/includes/modules/livraison/pdf/";
$file = "pdf_".$modele.".modules.php";
if (file_exists($dir.$file))
{
@ -141,7 +141,7 @@ if ($_POST["action"] == 'set_DELIVERY_FREE_TEXT')
if ($_GET["action"] == 'setmod')
{
// \todo Verifier si module numerotation choisi peut etre activ<EFBFBD>
// \todo Verifier si module numerotation choisi peut etre active
// par appel methode canBeActivated
dolibarr_set_const($db, "LIVRAISON_ADDON",$_GET["value"]);
@ -149,9 +149,10 @@ if ($_GET["action"] == 'setmod')
/*
* Affiche page
* View
*/
$dir = DOL_DOCUMENT_ROOT."/livraison/mods/";
$dir = DOL_DOCUMENT_ROOT."/includes/modules/livraison/";
$html=new Form($db);
llxHeader("","");
@ -209,7 +210,7 @@ if ($handle)
{
$file = substr($file, 0, strlen($file)-4);
require_once(DOL_DOCUMENT_ROOT ."/livraison/mods/".$file.".php");
require_once(DOL_DOCUMENT_ROOT ."/includes/modules/livraison/".$file.".php");
$module = new $file;
@ -312,7 +313,7 @@ print "</tr>\n";
clearstatcache();
$dir = DOL_DOCUMENT_ROOT."/livraison/mods/pdf/";
$dir = DOL_DOCUMENT_ROOT."/includes/modules/livraison/pdf/";
if(is_dir($dir))
{