WebsiteBaker Community Forum

WebsiteBaker Support (2.11.x) => Modules => Topic started by: RonR on October 25, 2018, 04:26:19 PM

Title: WB Lingual: how to show GIF instead of PNG?
Post by: RonR on October 25, 2018, 04:26:19 PM
Just updated WebsiteBaker to 2.12, and some plugins as well.
Updated mod-Lingual to the new WBLingual.
After update, flags changed to png and I want to show GIF flags instead again.

The line in my template file
(<?php $iMultiLang = 0; if (function_exists('language_menu')) etc)
 says gif, but not showing gif.

How should I change the code in MultiLingual/tpl/lang.html.twig to show gifs again?
Or change something else?

Any thoughts welcome!
Title: Re: WB Lingual: how to show GIF instead of PNG?
Post by: Luisehahne on October 25, 2018, 07:43:34 PM
Quote
Hier der Fix für den gif Fehler, wird auch im Gesamtpaket WB2.12.1 mit einfliessen

https://addon.WebsiteBaker.org/pages/en/browse-add-ons.php?id=08607612

Dietmar
Title: Re: WB Lingual: how to show GIF instead of PNG?
Post by: RonR on October 25, 2018, 08:51:29 PM
Thank you for the quick reply!

I tried the update, but it is breaking my site.
As far as I can tell, the problem is in the file Lingual.php, after upload of that file my site is broken.
 :-(
Title: Re: WB Lingual: how to show GIF instead of PNG?
Post by: Luisehahne on October 25, 2018, 08:58:15 PM
send you a pm

Dietmar
Title: Re: WB Lingual: how to show GIF instead of PNG?
Post by: Luisehahne on October 25, 2018, 10:46:32 PM
Remove the namespace in line 69 in file Lingual.php

original
        $oReg        = \bin\WbAdaptor::getInstance();

fixed
        $oReg        = \WbAdaptor::getInstance();

Dietmar

Title: Re: WB Lingual: how to show GIF instead of PNG?
Post by: RonR on October 26, 2018, 09:40:44 AM
Just upgraded to 2.12.1.

Everything is working like a charm again!

Thanks for your help, Dietmer and Luise, keep up the good work!