Commit c0aa81a9 authored by chaps2's avatar chaps2 Committed by gisle
Browse files

Issue #941866 by chaps2: Fixed help links displayed to users without advanced help permissions

parent e84de58a
......@@ -563,7 +563,7 @@ function theme_advanced_help_topic($variables) {
'html' => TRUE)
);
}
else {
elseif (user_access('view advanced help topic')) {
return l($text, "help/$module/$topic", array(
'attributes' => array(
'class' => $class,
......@@ -797,7 +797,7 @@ function _advanced_help_parse_ini() {
elseif (!file_exists("$module_path/help")) {
// Look for one or more README files.
$files = file_scan_directory("./$module_path",
'/^(README|readme).*\.(txt|TXT)$/', array('recurse' => FALSE));
'/^(readme).*\.(txt|md)$/i', array('recurse' => FALSE));
$path = "./$module_path";
foreach ($files as $name => $fileinfo) {
$info[$fileinfo->filename] = array(
......
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