Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advanced_help
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
advanced_help
Commits
a9f4ab9d
Commit
a9f4ab9d
authored
Jan 17, 2011
by
Dmitri Gaskin
Browse files
Options
Downloads
Patches
Plain Diff
#470652
by fgm: README content shown through Advanced help is in italic
parent
650b3484
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
advanced_help.module
+6
-1
6 additions, 1 deletion
advanced_help.module
with
6 additions
and
1 deletion
advanced_help.module
+
6
−
1
View file @
a9f4ab9d
...
...
@@ -576,8 +576,12 @@ function advanced_help_view_topic($module, $topic, $popup = FALSE) {
$info
=
advanced_help_get_topic
(
$module
,
$topic
);
$file
=
"./
$file_info[path]/$file_info[file]
"
;
// @todo is this trusted output?
$output
=
file_get_contents
(
$file
);
if
(
isset
(
$info
[
'readme file'
])
&&
$info
[
'readme file'
])
{
// Readme files are treated as plain text: filter accordingly.
$output
=
check_plain
(
$output
);
}
// Make some exchanges. The strtr is because url() translates $ into %24
// but we need to change it back for the regex replacement.
...
...
@@ -776,6 +780,7 @@ function _advanced_help_parse_ini() {
'line break'
=>
isset
(
$topic
[
'line break'
])
?
$topic
[
'line break'
]
:
(
isset
(
$cache
[
'settings'
][
$module
][
'line break'
])
?
$cache
[
'settings'
][
$module
][
'line break'
]
:
FALSE
),
'navigation'
=>
isset
(
$topic
[
'navigation'
])
?
$topic
[
'navigation'
]
:
(
isset
(
$cache
[
'settings'
][
$module
][
'navigation'
])
?
$cache
[
'settings'
][
$module
][
'navigation'
]
:
TRUE
),
'css'
=>
isset
(
$topic
[
'css'
])
?
$topic
[
'css'
]
:
(
isset
(
$cache
[
'settings'
][
$module
][
'css'
])
?
$cache
[
'settings'
][
$module
][
'css'
]
:
NULL
),
'readme file'
=>
isset
(
$topic
[
'readme file'
])
?
$topic
[
'readme file'
]
:
FALSE
,
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment