From 14175ce665e74eff101d5c206dc348a2b6e95416 Mon Sep 17 00:00:00 2001 From: jkbockstael Date: Fri, 22 Apr 2011 11:57:00 +0200 Subject: [PATCH] CustomPages : clearer explanation on global.inc.php requirement. --- custompages/language.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custompages/language.inc.php b/custompages/language.inc.php index 9c34ed7cc9..eeba1390da 100644 --- a/custompages/language.inc.php +++ b/custompages/language.inc.php @@ -4,7 +4,8 @@ // 2011, Jean-Karim Bockstael, CBlue // This requires the Chamilo system to be initialized -require_once('/main/inc/global.inc.php'); +// (note that it's easier to do the following include in the parent page) +// require_once('path/to/main/inc/global.inc.php'); // Returns the best match between available languages and visitor preferences // return the best match as 2-chars code, null when none match