Notifications
Clear all
6 Forums 829 Topics 3,280 Posts 9 Online 3,047 Members

Dark Mode Enable Slider Error

4 Posts
4 Users
0 Reactions
242 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.


3 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: 1185
Admin
(@stevland)
Member
Joined: 10 years ago

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


Reply
Share: