mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #24669
[Bug 1429871] [NEW] Link underlining in skins doesn't work
Public bug reported:
If the user edits a skin (Edit skin > Fonts and colours) and checks the
Underline link -option, the link doesn't get underlined on a page with
the skin applied. There seems to be a bug in skin/style.php#38 with the
comparison
if ($option == 'transparent')
because when a checkbox is selected, the $option value is a boolean TRUE
and when using PHP's loose comparison operator, (true == 'transparent')
= true. Therefore for example
$skin->viewskin['view_link_normal_underline'] (and a few others) value
changes to an empty string and the value assigned to template is 'none'
instead of 'underline'.
A simple fix is to use strict comparison:
if ($option === 'transparent')
---
Mahara version: 1.9.1
Browser: Chrome (Linux) 40.0.2214.115 (64-bit)
** Affects: mahara
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1429871
Title:
Link underlining in skins doesn't work
Status in Mahara ePortfolio:
New
Bug description:
If the user edits a skin (Edit skin > Fonts and colours) and checks
the Underline link -option, the link doesn't get underlined on a page
with the skin applied. There seems to be a bug in skin/style.php#38
with the comparison
if ($option == 'transparent')
because when a checkbox is selected, the $option value is a boolean
TRUE and when using PHP's loose comparison operator, (true ==
'transparent') = true. Therefore for example
$skin->viewskin['view_link_normal_underline'] (and a few others) value
changes to an empty string and the value assigned to template is
'none' instead of 'underline'.
A simple fix is to use strict comparison:
if ($option === 'transparent')
---
Mahara version: 1.9.1
Browser: Chrome (Linux) 40.0.2214.115 (64-bit)
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1429871/+subscriptions
Follow ups
-
[Bug 1429871] Re: Link underlining in skins doesn't work
From: Aaron Wells, 2015-10-23
-
[Bug 1429871] Re: Link underlining in skins doesn't work
From: Jinelle Foley-Barnes, 2015-04-20
-
[Bug 1429871] Re: Link underlining in skins doesn't work
From: Aaron Wells, 2015-04-20
-
[Bug 1429871] Re: Link underlining in skins doesn't work
From: Robert Lyon, 2015-04-20
-
[Bug 1429871] Re: Link underlining in skins doesn't work
From: Son Nguyen, 2015-04-19
-
[Bug 1429871] Re: Link underlining in skins doesn't work
From: Robert Lyon, 2015-04-17
-
[Bug 1429871] A change has been merged
From: Mahara Bot, 2015-04-16
-
[Bug 1429871] Re: Link underlining in skins doesn't work
From: Robert Lyon, 2015-04-16
-
[Bug 1429871] A change has been merged
From: Mahara Bot, 2015-04-16
-
[Bug 1429871] A change has been merged
From: Mahara Bot, 2015-04-16
-
[Bug 1429871] A patch has been submitted for review
From: Mahara Bot, 2015-04-16
-
[Bug 1429871] A patch has been submitted for review
From: Mahara Bot, 2015-04-16
-
[Bug 1429871] A patch has been submitted for review
From: Mahara Bot, 2015-04-16
-
[Bug 1429871] A patch has been submitted for review
From: Mahara Bot, 2015-04-16
-
[Bug 1429871] A change has been merged
From: Mahara Bot, 2015-04-16
-
[Bug 1429871] Re: Link underlining in skins doesn't work
From: Robert Lyon, 2015-04-16
-
[Bug 1429871] A patch has been submitted for review
From: Mahara Bot, 2015-04-15
-
[Bug 1429871] Re: Link underlining in skins doesn't work
From: Robert Lyon, 2015-04-15
-
[Bug 1429871] Re: Link underlining in skins doesn't work
From: Aaron Wells, 2015-03-10
-
[Bug 1429871] [NEW] Link underlining in skins doesn't work
From: Olli Puurunen, 2015-03-09
References