Skip to content

Commit

Permalink
Fix: problem with image in emailing
Browse files Browse the repository at this point in the history
Fix: use the same image path of fckeditor default path
  • Loading branch information
hregis committed Mar 23, 2011
1 parent 11c2a7c commit 2af2280
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
21 changes: 11 additions & 10 deletions htdocs/includes/modules/modFckeditor.class.php
@@ -1,7 +1,7 @@
<?php
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
* Copyright (C) 2005-2011 Regis Houssin <regis@dolibarr.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -19,22 +19,23 @@
*/

/**
\defgroup fckeditor Module fckeditor
\brief Module pour mettre en page les zones de saisie de texte
\version $Id$
* \defgroup fckeditor Module fckeditor
* \brief Module pour mettre en page les zones de saisie de texte
* \version $Id$
*/

/**
\file htdocs/includes/modules/modFckeditor.class.php
\ingroup fckeditor
\brief Fichier de description et activation du module Fckeditor
* \file htdocs/includes/modules/modFckeditor.class.php
* \ingroup fckeditor
* \brief Fichier de description et activation du module Fckeditor
*/

include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");


/** \class modFckeditor
\brief Classe de description et activation du module Fckeditor
/**
* \class modFckeditor
* \brief Classe de description et activation du module Fckeditor
*/

class modFckeditor extends DolibarrModules
Expand All @@ -60,7 +61,7 @@ function modFckeditor($DB)
$this->picto='list';

// Data directories to create when module is enabled
$this->dirs = array("/fckeditor/temp","/fckeditor/images");
$this->dirs = array("/fckeditor/temp","/fckeditor/image");

// Config pages
$this->config_page_url = array("fckeditor.php");
Expand Down
7 changes: 7 additions & 0 deletions htdocs/viewimage.php
Expand Up @@ -276,6 +276,13 @@ function llxHeader() { }
$accessallowed=1;
$original_file=$conf->scanner->dir_temp.'/'.$user->id.'/'.$original_file;
}

// Wrapping pour les images fckeditor
elseif ($modulepart == 'fckeditor')
{
$accessallowed=1;
$original_file=$conf->fckeditor->dir_output.'/'.$original_file;
}

// GENERIC Wrapping
// If modulepart=module_user_temp Allows any module to open a file if file is in directory called DOL_DATA_ROOT/modulepart/temp/iduser
Expand Down

0 comments on commit 2af2280

Please sign in to comment.