Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
8b7463e7
Commit
8b7463e7
authored
Dec 11, 2009
by
Sam Hemelryk
Browse files
weblib MDL-17550 Added code to convert arrows set in themes from entities to UTF8 chars
parent
f3568c2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/weblib.php
View file @
8b7463e7
...
...
@@ -1924,6 +1924,7 @@ function check_theme_arrows() {
global
$THEME
;
if
(
!
isset
(
$THEME
->
rarrow
)
and
!
isset
(
$THEME
->
larrow
))
{
debug
(
$THEME
,
'not set'
);
// Default, looks good in Win XP/IE 6, Win/Firefox 1.5, Win/Netscape 8...
// Also OK in Win 9x/2K/IE 5.x
$THEME
->
rarrow
=
'►'
;
// ►
...
...
@@ -1958,6 +1959,13 @@ function check_theme_arrows() {
$THEME
->
rarrow
=
$THEME
->
larrow
;
$THEME
->
larrow
=
$t
;
}
}
else
{
if
(
strpos
(
$THEME
->
rarrow
,
'&'
)
===
0
&&
strrpos
(
$THEME
->
rarrow
,
';'
)
===
strlen
(
$THEME
->
rarrow
)
-
1
)
{
$THEME
->
rarrow
=
html_entity_decode
(
$THEME
->
rarrow
,
ENT_QUOTES
,
'utf-8'
);
}
if
(
strpos
(
$THEME
->
larrow
,
'&'
)
===
0
&&
strrpos
(
$THEME
->
larrow
,
';'
)
===
strlen
(
$THEME
->
larrow
)
-
1
)
{
$THEME
->
larrow
=
html_entity_decode
(
$THEME
->
larrow
,
ENT_QUOTES
,
'utf-8'
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment