FA icons are not displayed on styles whose names contain special characters.

Kein Support auf phpBB Styles direkt!
No support directly to phpBB Styles!

Post Reply

Topic author
cabot
Active Member
Posts: 6
Joined: 21. March 2023 12:54
phpBB.com User: cabot

FA icons are not displayed on styles whose names contain special characters.

Post by cabot »

Hello,

The names of the styles selected to display Font Awesome icons are not encoded in UTF-8 in the board3_portal_fa_styles config. When they contain special characters, they are not recognised and continue to display image icons.

Proposed fix — apply the following minimal change in the store_fa_styles() method to accept special characters:

Code: Select all

	public function store_fa_styles(string $key): void
	{
		$style_array = $this->request->variable($key, [''], true);
		$this->config->set('board3_portal_fa_styles', json_encode($style_array));
	}
In the longer term, might it be preferable to store the style IDs rather than their names?
Post Reply

Return to “Styles Support”