Commit 57cb4673 authored by drugan's avatar drugan

Issue #3082894: Repair broken link to the snippet file

parent d4393872
......@@ -253,6 +253,9 @@ class ReadmeHelpMarkdownConverter implements ReadmeHelpInterface {
if (!is_file($file)) {
$name = basename($orig);
$file = "$root/$path/$name";
if (!is_file($file)) {
$file = "$root/$path/$orig";
}
}
}
......@@ -280,7 +283,6 @@ class ReadmeHelpMarkdownConverter implements ReadmeHelpInterface {
* @todo add css & js files support.
*/
public function highlightPhp($file, $line_number, $padding, $markup = FALSE) {
if (!$file || !is_readable($file)) {
return "<span class=\"readmehelp-error\">CAN'T BE READ:</span> $file LINE: $line_number PADD: $padding";
}
......
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