From 23c25066d3c32d4609df58ce2f6051d38bb05295 Mon Sep 17 00:00:00 2001 From: Florian Henry Date: Tue, 28 May 2013 17:54:55 +0200 Subject: [PATCH] Change comment on dol_include_once --- htdocs/core/lib/functions.lib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 9f543529379..0e647baeb55 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -223,10 +223,9 @@ function dol_getprefix() /** * Make an include_once using default root and alternate root if it fails. - * WARNING: In most cases, you should not use this function: * To link to a core file, use include(DOL_DOCUMENT_ROOT.'/pathtofile') * To link to a module file from a module file, use include './mymodulefile'; - * To link to a module file from a core file, then this function can be used + * To link to a module file from a core file, then this function can be used (call by hook / trigger / speciales pages) * * @param string $relpath Relative path to file (Ie: mydir/myfile, ../myfile, ...) * @param string $classname Class name