Jump to content

7.2.1 Language choice available in client area event when not enabled


Recommended Posts

it's good to know that WHMCS testing standards remain as high as ever - this is a bug. :roll:

 

you can't really fix it with a hook (there are still visible parts), so the only temporary solution would be to use the code that worked perfectly well in v7.1.2 and in header.tpl change...

 

        <ul class="top-nav">
           <li>
               <a href="#" class="choose-language" data-toggle="popover" id="languageChooser">
                   {$activeLocale.localisedName}
                   <b class="caret"></b>
               </a>
               <div id="languageChooserContent" class="hidden">
                   <ul>
                       {foreach $locales as $locale}
                           <li><a href="{$currentpagelinkback}language={$locale.language}">{$locale.localisedName}</a></li>
                       {/foreach}
                   </ul>
               </div>
           </li>

to...

        <ul class="top-nav">
           {if $languagechangeenabled && count($locales) > 1}
           <li>
               <a href="#" class="choose-language" data-toggle="popover" id="languageChooser">
                   {$activeLocale.localisedName}
                   <b class="caret"></b>
               </a>
               <div id="languageChooserContent" class="hidden">
                   <ul>
                       {foreach $locales as $locale}
                           <li><a href="{$currentpagelinkback}language={$locale.language}">{$locale.localisedName}</a></li>
                       {/foreach}
                   </ul>
               </div>
           </li>
           {/if}

you might also want to consider reporting it as a bug in case they don't see this thread.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated