From 3ddb410e2e9b20a15ec1bee649c0d85ecb98b456 Mon Sep 17 00:00:00 2001 From: Florian Henry Date: Tue, 28 May 2013 17:53:56 +0200 Subject: [PATCH] Change comment on dol_include_once method --- htdocs/core/lib/functions.lib.php | 3 +-- ...lient_actioncomm.php-NORUN => demo_wsclient_actioncomm.php} | 0 2 files changed, 1 insertion(+), 2 deletions(-) rename htdocs/webservices/{demo_wsclient_actioncomm.php-NORUN => demo_wsclient_actioncomm.php} (100%) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index c440b8d33dd..531fb2f52fa 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 diff --git a/htdocs/webservices/demo_wsclient_actioncomm.php-NORUN b/htdocs/webservices/demo_wsclient_actioncomm.php similarity index 100% rename from htdocs/webservices/demo_wsclient_actioncomm.php-NORUN rename to htdocs/webservices/demo_wsclient_actioncomm.php