Forum

Dark Mode Enable Sl...
 
Notifications
Clear all

Dark Mode Enable Slider Error

3 Posts
4 Users
0 Reactions
27 Views
Posts: 36
Topic starter
(@stephenehos-ca)
Member
Joined: 6 years ago

I am receiving the follow "error" code beside the Dark Mode enablement slider.  It does not appear in the OSTicket Awesome demo environment.


2 Replies
Posts: 8
(@reinierstuptech-com)
Member
Joined: 3 years ago

This is actually caused by a typo in their code. Its an easy fix. Open /include/staff/profile.inc.php and edit line 557, from
<input type="radio" id="dark_mode_radio" name="dark_mode" class="switch nullable" <? echo $staff->getExtraAttr("dark_mode", "false")  == "on" ? "checked='checked'" : "" ?>>

to

<input type="radio" id="dark_mode_radio" name="dark_mode" class="switch nullable" <?php echo $staff->getExtraAttr("dark_mode", "false")  == "on" ? "checked='checked'" : "" ?>>

 

(They are missing the "php" tag before the echo)


Reply
Posts: 1
(@niwrik)
Member
Joined: 3 years ago

Thank you!


Reply
Posts: 1177
Admin
(@stevland)
Member
Joined: 2 months ago

Thank you for sharing your fix, @reinierstuptech-com.


Reply
Share: