From 636796bb571aec4dd1d2656f711cd5e6126ec796 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 1 May 2009 11:49:48 +0000 Subject: [PATCH] Fix: $this not allowed --- htdocs/document.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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