Announcement

#1 2024-02-07 17:33:50

Gedeon
Member
2024-02-07
1

Error message : Vous ne pouvez activer qu'un seul thème mobile.

Hello everybody,

Error message : "Vous ne pouvez activer qu'un seul thème mobile" (You can only activate one mobile theme).

I receive this error message when I want to switch to another mobile theme. I have Bootstrap Darkroom and not able to change it.
It's ok (no error message) when I want to change to Pure_autumn for example.

Also, in functions.inc.php file I had to remove some lines to make my site working on mobile.
Whatever the theme is, it's always working on my PC.

Thanks for help :-) Gédéon

Removed lines in functions.inc.php :
  global $conf;
  if (empty($conf['mobile_theme']))
  {
    return false;
  }
  if (isset($_GET['mobile']))
  {
    $is_mobile_theme = get_boolean($_GET['mobile']);
    pwg_set_session_var('mobile_theme', $is_mobile_theme);
  }
  else
  {
    $is_mobile_theme = pwg_get_session_var('mobile_theme');
  }
  if (is_null($is_mobile_theme))
  {
    $is_mobile_theme = (get_device() == 'mobile');
    pwg_set_session_var('mobile_theme', $is_mobile_theme);
  }
  return $is_mobile_theme;

Environnement
Piwigo 14.2.0 Dernière version ?
Installé le 13 Octobre 2017, il y a 6 ans 3 mois 3 semaines 3 jours
Système d'exploitation: Linux
PHP: 8.1.23 (Montrer les informations) [2024-02-07 13:27:50]
MySQL: 5.7.42-log [2024-02-07 13:27:50]
Bibliothèque graphique: ImageMagick 6.9.10-23
Taille du cache non disponible   jamais calculé Rafraîchir

Liste des plugins activés7
Additional Pages
Admin Tools
AStat.2
Check Files Integrity
Grum Plugins Classes.3
PWG Stuffs
Take A Tour of Your Piwigo

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact