Commit 15d40342 authored by Ruslan Kabalin's avatar Ruslan Kabalin Committed by Richard Mansfield
Browse files

Added the possibility of helpfiles customization.



Any html helpfile placed at htdocs/local directory preserving their relative path from
htdocs directory will override original files. e.g. If you like to override
"htdocs/lang/en.utf8/help/pages/user/myfriends.html", place amended file at
"htdocs/local/lang/en.utf8/help/pages/user/myfriends.html", the same imples to
plugins - to override
"htdocs/artefact/resume/lang/en.utf8/help/pages/index.html" the file should be
placed at "htdocs/local/artefact/resume/lang/en.utf8/help/pages/index.html").
Signed-off-by: default avatarRuslan Kabalin <ruslan.kabalin@luns.net.uk>
parent 18d54304
......@@ -275,6 +275,12 @@ function get_helpfile_location($plugintype, $pluginname, $form, $element, $page=
$trieden = false;
}
//try the local settings
$langfile = get_config('docroot') . 'local/' . $location . $lang . '/' . $file;
if (is_readable($langfile)) {
return $langfile;
}
// try the current language
$langfile = get_language_root() . $location . $lang . '/' . $file;
if (is_readable($langfile)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment