diff --git a/htdocs/document.php b/htdocs/document.php index e99c86d10dd..c296f361886 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -2,6 +2,7 @@ /* Copyright (C) 2004-2007 Rodolphe Quiedeville * Copyright (C) 2004-2009 Laurent Destailleur * Copyright (C) 2005 Simon Tosser + * Copyright (C) 2005-2009 Regis Houssin * * 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 @@ -324,7 +325,7 @@ if ($modulepart) { $accessallowed=1; } - $original_file= $this->ged->dir_output.'/'.$original_file; + $original_file= $conf->ged->dir_output.'/'.$original_file; } // Wrapping pour les documents generaux @@ -335,7 +336,7 @@ if ($modulepart) { $accessallowed=1; } - $original_file= $this->ecm->dir_output.'/'.$original_file; + $original_file= $conf->ecm->dir_output.'/'.$original_file; } // Wrapping pour les dons