diff --git a/help.php b/help.php index e4b24bd5219..6544a1bf2f7 100644 --- a/help.php +++ b/help.php @@ -5,14 +5,14 @@ * * Prints a very simple page and includes * page content or a string from elsewhere. - * Usually this will appear in a popup + * Usually this will appear in a popup * See {@link helpbutton()} in {@link lib/moodlelib.php} * * @author Martin Dougiamas * @version $Id$ * @package moodlecore */ - + require_once('config.php'); @@ -40,8 +40,11 @@ $filepath = $CFG->dirroot .'/lang/'. $lang .'/help/'. $file; } else { $filepath = $CFG->dirroot .'/lang/'. $lang .'/help/'. $module .'/'. $file; + if (!file_exists($filepath)) { + $filepath = $CFG->dirroot.'/mod/'.$module.'/lang/'. $lang .'/help/'. $module .'/'. $file; + } } - + if (file_exists($filepath)) { $helpfound = true; include($filepath); // The actual helpfile