Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
advanced_help
Commits
63a03c73
Commit
63a03c73
authored
Apr 19, 2008
by
merlinofchaos
Browse files
Re-fix for clean URL off support
parent
299a9299
Changes
1
Show whitespace changes
Inline
Side-by-side
advanced_help.module
View file @
63a03c73
...
...
@@ -453,8 +453,10 @@ function advanced_help_view_topic($module, $topic, $popup = FALSE) {
$output
=
preg_replace
(
'/src="topic:([^"]+)"/'
,
'src="'
.
url
(
'help/$1'
)
.
'"'
,
$output
);
}
$output
=
preg_replace
(
'/href="path:([^"]+)"/'
,
'href="'
.
url
(
$info
[
'path'
])
.
'/$1"'
,
$output
);
$output
=
preg_replace
(
'/src="path:([^"]+)"/'
,
'src="'
.
url
(
$info
[
'path'
])
.
'/$1"'
,
$output
);
global
$base_path
;
$output
=
preg_replace
(
'/href="path:([^"]+)"/'
,
'href="'
.
$base_path
.
$info
[
'path'
]
.
'/$1"'
,
$output
);
$output
=
preg_replace
(
'/src="path:([^"]+)"/'
,
'src="'
.
$base_path
.
$info
[
'path'
]
.
'/$1"'
,
$output
);
return
'<div class="advanced-help-topic">'
.
$output
.
'</div>'
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment