Commit 538d46ab authored by merlinofchaos's avatar merlinofchaos
Browse files

Allow "file" to default to topic id.

parent 61c878bb
......@@ -506,12 +506,13 @@ function advanced_help_get_topics() {
}
foreach ($info as $name => $topic) {
// Each topic should have a name, a title, a file and of course the path.
$file = !empty($topic['file']) ? $topic['file'] : $name;
$topics[$module][$name] = array(
'name' => $name,
'title' => !empty($translation['name']['title']) ? $translation['name']['title'] : $topic['title'],
'weight' => isset($topic['weight']) ? $topic['weight'] : 0,
'parent' => isset($topic['parent']) ? $topic['parent'] : 0,
'file' => $topic['file'] . '.html', // require extension
'file' => $file . '.html', // require extension
'path' => $path, // not in .ini file
);
}
......
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